Micropython Commands; Ps (Python Startup); Py (Micropython Command) - Digi XBee 3 ZigBee User Manual

Rf module
Table of Contents

Advertisement

AT commands
(GT) of silence before and after this sequence.
The default value (0x2B) is the ASCII code for the plus (+) character. You must enter it three times
within the guard time to enter Command mode. To enter Command mode, there is also a required
period of silence before and after the command sequence characters of the Command mode
sequence (GT + CC + GT). The period of silence prevents inadvertently entering Command mode. For
more information, see
Parameter range
0 - 0xFF
Default
0x2B (the ASCII plus character: +)

MicroPython commands

The following commands relate to using MicroPython on the XBee 3 Zigbee RF Module.

PS (Python Startup)

Sets whether or not the XBee 3 Zigbee RF Module runs the stored Python code at startup.
Range
0 - 1
Parameter
0
1
Default
0

PY (MicroPython Command)

Interact with the XBee 3 Zigbee RF Module using MicroPython. PY is a command with sub-commands.
These sub-commands are arguments to PY.
PYB (Bundled Code Report)
You can store compiled code in flash using the os.bundle() function in the MicroPython REPL; refer to
the
Digi MicroPython Programming
In Command mode, it returns two lines of text, for example:
bytecode: 619 bytes (hash=0x0900DBCE)
compiled: 2017-05-09T15:49:44
The messages are:
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.
Digi XBee® 3 Zigbee® RF Module
Enter Command
mode.
Description
Do not run stored Python code at startup.
Run stored Python code at startup.
Guide. The PYB sub-command reports details of the bundled code.
MicroPython commands
206

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the XBee 3 ZigBee and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents