Q: FAQ: Max Payload (Z-Stack, ZigBee)

How to determine the maximum size of payload data when sending a message from the application.

You can retrieve the maximum payload size by making a call to the application framework. For example the call would be MaxDataLength = afDataReqMTU( &mtu ) where the mtu is an instance of the afDataReqMTU_t structure containing information about the type of packet being sent.