MyQttMsgType myqtt_msg_get_type ( MyQttMsg msg)

Allows to get the MQTT message type from the provided message.

Parameters
msgThe message to report type from.
Returns
The message type. The function returns -1 if it fails (msg reference is NULL).