MQTT C Client Libraries Internals: Publish Struct Reference

| MQTT C Client Libraries Internals

Loading...
Searching...
No Matches
Data Fields
Publish Struct Reference

Data for a publish packet. More...

`#include <MQTTPacket.h>`

Collaboration diagram for Publish:
[legend]

## Data Fields
Header | header
| MQTT header byte.
char * | topic
| topic string
int | topiclen
int | msgId
| MQTT message id.
char * | payload
| binary payload, length delimited
int | payloadlen
| payload length
int | MQTTVersion
| the version of MQTT
MQTTProperties | properties
| MQTT 5.0 properties.
uint8_t | mask [4]
| the websockets mask the payload is masked with, if any

## Detailed Description

Data for a publish packet.

## Field Documentation

## ◆ properties

MQTTProperties Publish::properties

MQTT 5.0 properties.

Not used for MQTT < 5.0

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

- MQTTPacket.h