NP (Maximum Packet Payload Bytes)

This command applies to the XBee 3 Zigbee RF Module.

If operating in Transparent mode (AP = 0), NP reads the maximum number of RF payload bytes that you can typically send in a transmission based on current parameter settings (DH, DL, TO, and EE). Transmissions in Transparent mode do not use fragmentation and this value represents the payload of a single fragment. For other operating modes, NP returns the typical maximum number of RF payload bytes that can be transmitted with fragmentation enabled (255 bytes).

See Maximum RF payload size for more information.

Some options may impact maximum payload size that are not captured by the NP value: sending a packet securely across a Secure Session (API transmit option bit 4 enabled) will reduce the maximum payload size by 4 bytes. Using source routing (AR < 0xFF) further reduces the maximum payload size depending on how many hops are traversed.

Using source routing (AR < 0xFF), further reduces the maximum payload size depending on how many hops are traversed.

Note NP returns a hexadecimal value. For example, if NP returns 0x54, this is equivalent to 84 bytes.

Parameter range

0 - 0xFF [read-only]

Default

N/A