Set or read the API mode setting. The device can format the RF packets it receives into API frames and sends them out the serial port.

When you enable API, you must format the serial data as API frames.

Parameter range

0-4

Parameter Description

0x00

Transparent mode, API mode is off. All UART input and output is raw data and the device uses the RO parameter along with buffer thresholds to delineate packets.

0x01

API Mode Without Escapes. The device packetizes all UART input and output data in API format, without escape sequences.

0x02

API Mode With Escapes. The device is in API mode and inserts escaped sequences to allow for control characters. The device passes XON (0x11), XOFF (0x13), Escape (0x7D), and start delimiter 0x7E as data.

0x04

API enabled in Micropython mode

Default

0