const char * myqtt_msg_get_type_str2 ( MyQttMsgType  type)

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

This function is similar to myqtt_msg_get_type_str but this one reports a string.

Parameters
typeThe type to get the string from.
Returns
The message type in the form of a string.

References MYQTT_CONNACK, MYQTT_CONNECT, MYQTT_DISCONNECT, MYQTT_PINGREQ, MYQTT_PINGRESP, MYQTT_PUBACK, MYQTT_PUBCOMP, MYQTT_PUBLISH, MYQTT_PUBREC, MYQTT_PUBREL, MYQTT_SUBACK, MYQTT_SUBSCRIBE, MYQTT_UNSUBACK, and MYQTT_UNSUBSCRIBE.

Referenced by myqtt_msg_get_type_str().