Functions
MyQtt Msg: Functions to manage messages received

Functions

const axlPointer myqtt_msg_get_app_msg (MyQttMsg *msg)
 Allows to get application message inside the provided message (only for MYQTT_PUBLISH type). More...
 
int myqtt_msg_get_app_msg_size (MyQttMsg *msg)
 Allows to get application message size inside the provided message (only for MYQTT_PUBLISH type). More...
 
MyQttCtxmyqtt_msg_get_ctx (MyQttMsg *msg)
 Allows to get the context reference under which the msg was created. More...
 
axl_bool myqtt_msg_get_dup_flag (MyQttMsg *msg)
 Allows to get dup flag from the provided message. More...
 
int myqtt_msg_get_id (MyQttMsg *msg)
 Allows to get the unique msg identifier for the given msg. More...
 
const axlPointer myqtt_msg_get_payload (MyQttMsg *msg)
 Returns the raw payload associated to the given msg (variable header + payload). More...
 
int myqtt_msg_get_payload_size (MyQttMsg *msg)
 Returns variable header + payload size. More...
 
MyQttQos myqtt_msg_get_qos (MyQttMsg *msg)
 Allows to get quality of service of the message received. More...
 
const char * myqtt_msg_get_topic (MyQttMsg *msg)
 Allows to get topic message from the message (only supported for PUBLISH messages). More...
 
MyQttMsgType myqtt_msg_get_type (MyQttMsg *msg)
 Allows to get the MQTT message type from the provided message. More...
 
const char * myqtt_msg_get_type_str (MyQttMsg *msg)
 Allows to get the MQTT message type from the provided message in string format. More...
 
const char * myqtt_msg_get_type_str2 (MyQttMsgType type)
 Allows to get the MQTT message type from the provided type value. More...
 
axl_bool myqtt_msg_ref (MyQttMsg *msg)
 Increases the msg reference counting. More...
 
int myqtt_msg_ref_count (MyQttMsg *msg)
 Returns current reference counting for the msg received. More...
 
void myqtt_msg_unref (MyQttMsg *msg)
 Allows to decrease the msg reference counting, making an automatic call to myqtt_msg_free if the reference counting reach 0. More...
 

Detailed Description