Structure representing an MQTT Client Message.
This structure holds the information for a message received from or sent to the MQTT broker. It includes details such as the Quality of Service level, packet identifier, and message content.
Public Attributes#
Quality of Service level of the message.
Packet identifier of the received message.
Flag indicating whether the message is retained by the broker.
Flag indicating whether this is a duplicate message.
Pointer to the topic name. Must not be NULL.
Length of the topic name. Should not exceed 200 bytes including NULL termination character.
Pointer to the message content. Must not be NULL.
Length of the message content.
Public Attribute Documentation#
packet_identifier#
uint16_t sl_mqtt_client_message_t::packet_identifier
Packet identifier of the received message.
is_retained#
bool sl_mqtt_client_message_t::is_retained
Flag indicating whether the message is retained by the broker.
is_duplicate_message#
bool sl_mqtt_client_message_t::is_duplicate_message
Flag indicating whether this is a duplicate message.
topic_length#
uint16_t sl_mqtt_client_message_t::topic_length
Length of the topic name. Should not exceed 200 bytes including NULL termination character.