int myqtt_msg_get_app_msg_size ( MyQttMsg msg)

Allows to get application message size inside the provided message (only for MYQTT_PUBLISH type).

Parameters
msgThe PUBLISH (MYQTT_PUBLISH) message to get the application message size from
Returns
Application message size or -1 if it fails. It also reports -1 when MyQttMsg received is not a PUBLISH one.

References MYQTT_PUBLISH.