const axlPointer myqtt_msg_get_payload ( MyQttMsg msg)

Returns the raw payload associated to the given msg (variable header + payload).

For PUBLISH (MYQTT_PUBLISH) message types, you can use myqtt_msg_get_app_msg and myqtt_msg_get_app_msg_size to get a reference to the application message.

Return actual msg payload. You must not free returned reference.

msgThe msg where the payload is being requested.
the actual msg's payload or NULL if fail.