Digi XBee3 Cellular LTE-M/NB-IoT Global Smart Modem User Guide
5
Example: use Python to generate a CoAP message 52
Connect to a TCP/IP address 54
Get started with MQTT 55
Example: MQTT connect 55
Send a connect packet 57
Example: send messages (publish) with MQTT 58
Example: receive messages (subscribe) with MQTT 59
Use MQTT over the XBee Cellular Modem with a PC 60
Debugging 63
Software libraries 63
Get started with MicroPython
About MicroPython 65
Why use MicroPython 65
MicroPython on the XBee Smart Modem 65
Use XCTU to enter the MicroPython environment 65
Use the MicroPython Terminal in XCTU 66
Troubleshooting 66
Example: hello world 66
Example: turn on an LED 66
Example: debug the secondary UART 67
Exit MicroPython mode 68
Other terminal programs 68
Tera Term for Windows 69
Use picocom in Linux 70
Get started with BLE
Enable BLE on an XBee device 72
Enable BLEand configure the BLEpassword using XCTU 72
Get the Digi XBeeMobile phone application 73
Connect with BLEand configure your XBee device 74
BLE reference 74
BLE advertising behavior and services 74
Device Information Service 74
XBee API BLEService 75
API Request characteristic 75
API Response characteristic 75
Get started with Digi Remote Manager
Create a Remote Manager account and add devices 77
Create a Remote Manager account 78
Add an XBee Smart Modem to Remote Manager 78
Verify the connection between a device and Remote Manager 79
Configure Remote Manager features by scheduling tasks 79
Overview: Create a schedule for a set of tasks 80
Examples 80
Example: Read settings and state using Remote Manager 80
Example: Configure a device from Remote Manager using XML 81
Example: Update XBee firmware using Remote Manager 82
Example: Update MicroPython from Remote Manager using XML 83