
XBee connection examples
Get started with CoAP
Digi XBee3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
53
Note
If you do not know the port number, open XCTU and look at the XBee Smart Modem in the
Radio
Modules
list. This view provides the port number and baud rate, as in the figure below where the baud
rate is 9600 b/s.
7. Type the baud rate and press
Enter
. You must match the device's current baud rate.
XCTU provides the current baud rate in the
BD Baud Rate
field. In this example you would type
9600
.
8. Press
Y
if you want an auto-generated example. Press
Enter
to build your own CoAP request.
9. If you press
Y
it generates a message with:
n
Method: POST
n
URI: example
n
payload: hello world
n
token: test
The send and receive message must match the same token and message id. Otherwise, the client re-
attempts the connection by sending out the request.
In the following figure, the payload contains the server response to the query. It shows the results for
when you press
Enter
rather than
Y
.