const char * myqtt_msg_get_topic ( MyQttMsg msg)

Allows to get topic message from the message (only supported for PUBLISH messages).

Parameters
msgThe message where the operation takes place.
Returns
Returns a reference to the the topic name on the PUBLISH message or NULL if it fails.

References MYQTT_PUBLISH.