Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
mqtt_publish_param Struct Reference

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.
 

Detailed Description

Parameters for a publish message (PUBLISH).

Field Documentation

◆ dup_flag

uint8_t mqtt_publish_param::dup_flag

Duplicate flag.

If 1, it indicates the message is being retransmitted. Has no meaning with QoS 0.

◆ message

struct mqtt_publish_message mqtt_publish_param::message

Messages including topic, QoS and its payload (if any) to be published.

◆ message_id

uint16_t mqtt_publish_param::message_id

Message id used for the publish message.

Redundant for QoS 0.

◆ retain_flag

uint8_t mqtt_publish_param::retain_flag

Retain flag.

If 1, the message shall be stored persistently by the broker.


The documentation for this struct was generated from the following file: