Use the AP command to set the operation mode
Use AP (API Enable) to specify the operation mode:
AP command setting | Description |
---|---|
AP = 0 |
Transparent operating mode, UART serial line replacement with API modes disabled. This is the default option. |
AP = 1 |
API operation. |
AP = 2 |
API operation with escaped characters (only possible on UART). |
AP = 3 |
N/A |
AP = 4 |
MicroPython REPL |
AP = 5 |
Bypass mode. This mode is for direct communication with the underlying chip and is only for advanced users. |
The API data frame structure differs depending on what mode you choose.