Operating mode configuration
The API Enable (AP) parameter configures the XBee module to operate using a frame-based API instead of the default Transparent mode. It allows you to select between the two supported API modes and the default transparent operation.
| Mode | AP value | Description |
|---|---|---|
| Transparent | 0 | API modes are disabled and the module operates in transparent mode |
| API 1 | 1 | API mode without escaped characters |
| API 2 | 2 | API mode with escaped characters |
The only difference between API 1 and API 2 is that API 2 operating mode requires that frames use escape characters (bytes).
Configuration of the serial XBee communication—whether it is transparent, API non-escaped (API 1), or API escaped (API 2)—does not prevent wireless communication between XBee modules. Since only the payload portion of the API frame is transmitted over the air, the receiving XBee modules will alter the packet information based on their AP setting, allowing an API non-escaped module to successfully communicate with others working in API escaped or Transparent mode.
Note Devices working in Transparent mode and modules set to API non-escaped (API 1) operation can communicate with devices configured to work in API escaped mode (API 2).
PDF
