AT commands
PS (Python Startup)
Sets whether or not the XBee Smart Modem runs the stored Python code at startup.
Range
0 - 1
Parameter
0
1
Default
0
PY (MicroPython Command)
Interact with the XBee Smart Modem using MicroPython. PY is a command with sub-commands.
These sub-commands are arguments to PY.
PYC(Code Report)
You can store compiled code in flash using the Ctrl-F command from the MicroPython REPL; refer to
the
Digi MicroPython Programming
In Command mode, it returns three lines of text, for example:
source: 1662 bytes (hash=0xC3B3A813)
bytecode: 619 bytes (hash=0x0900DBCE)
compiled: 2017-05-09T15:49:44
The messages are:
source: the size of the source code used to generate the bytecode and its 32-bit hash.
n
bytecode: the size of bytecode stored in flash and its 32-bit hash. A size of 0 indicates that
n
there is no stored code.
compiled: a compilation timestamp. A timestamp of 2000-01-01T00:00:00 indicates that the
n
clock was not set during compilation.
In API mode, PYC returns five 32-bit big-endian values:
source size
n
source hash
n
bytecode size
n
bytecode hash
n
timestamp as seconds since 2000-01-01T00:00:00
n
PYD (Delete Code)
PYD interrupts any running code, erases any stored code and then does a soft-reboot on the
MicroPython subsystem.
Digi XBee3 Cellular LTE-M Global Smart Modem User Guide
Description
Do not run stored Python code at startup.
Run stored Python code at startup.
Guide. The PYC sub-command reports details of the stored code.
MicroPython commands
118
Need help?
Do you have a question about the XB3-C-A2-UT series and is the answer not in the manual?
Questions and answers