MQTT Client Message structure.

Public Attributes#

Quality of subscription.

uint16_t

Packed id of the received message.

bool

Retained flag of message as sent by the broker.

bool

Whether this is a duplicate message.

uint8_t *

Pointer to topic name.

uint16_t

Length of the topic. Length should not exceed 200 bytes including NULL termination character.

uint8_t *

Pointer to content.

uint32_t

Length of the content.

Public Attribute Documentation#

qos_level#

sl_mqtt_qos_t sl_mqtt_client_message_t::qos_level

Quality of subscription.


Definition at line 136 of file components/service/mqtt/inc/sl_mqtt_client_types.h

packet_identifier#

uint16_t sl_mqtt_client_message_t::packet_identifier

Packed id of the received message.


Definition at line 137 of file components/service/mqtt/inc/sl_mqtt_client_types.h

is_retained#

bool sl_mqtt_client_message_t::is_retained

Retained flag of message as sent by the broker.


Definition at line 138 of file components/service/mqtt/inc/sl_mqtt_client_types.h

is_duplicate_message#

bool sl_mqtt_client_message_t::is_duplicate_message

Whether this is a duplicate message.


Definition at line 139 of file components/service/mqtt/inc/sl_mqtt_client_types.h

topic#

uint8_t* sl_mqtt_client_message_t::topic

Pointer to topic name.


Definition at line 140 of file components/service/mqtt/inc/sl_mqtt_client_types.h

topic_length#

uint16_t sl_mqtt_client_message_t::topic_length

Length of the topic. Length should not exceed 200 bytes including NULL termination character.


Definition at line 142 of file components/service/mqtt/inc/sl_mqtt_client_types.h

content#

uint8_t* sl_mqtt_client_message_t::content

Pointer to content.


Definition at line 143 of file components/service/mqtt/inc/sl_mqtt_client_types.h

content_length#

uint32_t sl_mqtt_client_message_t::content_length

Length of the content.


Definition at line 144 of file components/service/mqtt/inc/sl_mqtt_client_types.h