int myqtt_msg_get_payload_size ( MyQttMsg msg)

Returns variable header + payload size.

See myqtt_msg_get_payload for more information.

Parameters
msgThe msg where the variable header + payload size will be reported.
Returns
the actual payload size or -1 if fail