Get started with MicroPython
This section provides an overview and simple examples of how to use MicroPython with the XBee
Smart Modem. You can use MicroPython to enhance the intelligence of the XBee to enable you to do
edge-computing by adding business logic in MicroPython, rather than using external components.
Note For in-depth information and more complex code examples, refer to the Digi MicroPython
Programming Guide.
About MicroPython 36
MicroPython on the XBee Smart Modem 36
Use XCTU to enter the MicroPython environment 36
Use the MicroPython Terminal in XCTU 37
Example: hello world 37
Example: turn on an LED 37
Example: code a request help button 38
Example: debug the secondary UART 43
Exit MicroPython mode 43
Other terminal programs 44
Use picocom in Linux 45
Digi XBee® 3 Cellular LTE Cat 1 AT&T Smart Modem User Guide
35