Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
|
4.1.99 |
Parameters for a publish message (PUBLISH). More...
#include <mqtt.h>
Data Fields | ||
struct mqtt_publish_message | message | |
Messages including topic, QoS and its payload (if any) to be published. | ||
uint16_t | message_id | |
Message id used for the publish message. | ||
uint8_t | dup_flag: 1 | |
Duplicate flag. | ||
uint8_t | retain_flag: 1 | |
Retain flag. | ||
struct { | ||
struct mqtt_utf8_pair user_prop [CONFIG_MQTT_USER_PROPERTIES_MAX] | ||
MQTT 5.0, chapter 3.3.2.3.7 User Property. More... | ||
struct mqtt_utf8 response_topic | ||
MQTT 5.0, chapter 3.3.2.3.5 Response Topic. More... | ||
struct mqtt_binstr correlation_data | ||
MQTT 5.0, chapter 3.3.2.3.6 Correlation Data. More... | ||
struct mqtt_utf8 content_type | ||
MQTT 5.0, chapter 3.3.2.3.9 Content Type. More... | ||
uint32_t subscription_identifier [CONFIG_MQTT_SUBSCRIPTION_ID_PROPERTIES_MAX] | ||
MQTT 5.0, chapter 3.3.2.3.8 Subscription Identifier. More... | ||
uint32_t message_expiry_interval | ||
MQTT 5.0, chapter 3.3.2.3.3 Message Expiry Interval. More... | ||
uint16_t topic_alias | ||
MQTT 5.0, chapter 3.3.2.3.4 Topic Alias. More... | ||
uint8_t payload_format_indicator | ||
MQTT 5.0, chapter 3.3.2.3.2 Payload Format Indicator. More... | ||
struct { | ||
bool has_payload_format_indicator | ||
Payload Format Indicator property was present. More... | ||
bool has_message_expiry_interval | ||
Message Expiry Interval property was present. More... | ||
bool has_topic_alias | ||
Topic Alias property was present. More... | ||
bool has_response_topic | ||
Response Topic property was present. More... | ||
bool has_correlation_data | ||
Correlation Data property was present. More... | ||
bool has_user_prop | ||
User Property property was present. More... | ||
bool has_subscription_identifier | ||
Subscription Identifier property was present. More... | ||
bool has_content_type | ||
Content Type property was present. More... | ||
} rx | ||
Flags indicating whether given property was present in received packet. More... | ||
} | prop | |
MQTT 5.0 properties. | ||
Parameters for a publish message (PUBLISH).
struct mqtt_utf8 mqtt_publish_param::content_type |
MQTT 5.0, chapter 3.3.2.3.9 Content Type.
struct mqtt_binstr mqtt_publish_param::correlation_data |
MQTT 5.0, chapter 3.3.2.3.6 Correlation Data.
uint8_t mqtt_publish_param::dup_flag |
Duplicate flag.
If 1, it indicates the message is being retransmitted. Has no meaning with QoS 0.
bool mqtt_publish_param::has_content_type |
Content Type property was present.
bool mqtt_publish_param::has_correlation_data |
Correlation Data property was present.
bool mqtt_publish_param::has_message_expiry_interval |
Message Expiry Interval property was present.
bool mqtt_publish_param::has_payload_format_indicator |
Payload Format Indicator property was present.
bool mqtt_publish_param::has_response_topic |
Response Topic property was present.
bool mqtt_publish_param::has_subscription_identifier |
Subscription Identifier property was present.
bool mqtt_publish_param::has_topic_alias |
Topic Alias property was present.
bool mqtt_publish_param::has_user_prop |
User Property property was present.
struct mqtt_publish_message mqtt_publish_param::message |
Messages including topic, QoS and its payload (if any) to be published.
uint32_t mqtt_publish_param::message_expiry_interval |
MQTT 5.0, chapter 3.3.2.3.3 Message Expiry Interval.
uint16_t mqtt_publish_param::message_id |
Message id used for the publish message.
Redundant for QoS 0.
uint8_t mqtt_publish_param::payload_format_indicator |
MQTT 5.0, chapter 3.3.2.3.2 Payload Format Indicator.
struct { ... } mqtt_publish_param::prop |
MQTT 5.0 properties.
struct mqtt_utf8 mqtt_publish_param::response_topic |
MQTT 5.0, chapter 3.3.2.3.5 Response Topic.
uint8_t mqtt_publish_param::retain_flag |
Retain flag.
If 1, the message shall be stored persistently by the broker.
struct { ... } mqtt_publish_param::rx |
Flags indicating whether given property was present in received packet.
uint32_t mqtt_publish_param::subscription_identifier[CONFIG_MQTT_SUBSCRIPTION_ID_PROPERTIES_MAX] |
MQTT 5.0, chapter 3.3.2.3.8 Subscription Identifier.
uint16_t mqtt_publish_param::topic_alias |
MQTT 5.0, chapter 3.3.2.3.4 Topic Alias.
struct mqtt_utf8_pair mqtt_publish_param::user_prop[CONFIG_MQTT_USER_PROPERTIES_MAX] |
MQTT 5.0, chapter 3.3.2.3.7 User Property.