The Cayenne MQTT mbed Library provides functions to easily connect to the Cayenne IoT project builder.

Dependents:   Cayenne-ESP8266Interface Cayenne-WIZnet_Library Cayenne-WIZnetInterface Cayenne-X-NUCLEO-IDW01M1 ... more

Embed: (wiki syntax)

« Back to documentation index

MQTTPacket_willOptions Struct Reference

MQTTPacket_willOptions Struct Reference

Defines the MQTT "Last Will and Testament" (LWT) settings for the connect packet. More...

#include <MQTTConnect.h>

Data Fields

char struct_id [4]
 The eyecatcher for this structure.
int struct_version
 The version number of this structure.
MQTTString topicName
 The LWT topic to which the LWT message will be published.
MQTTString message
 The LWT payload.
unsigned char retained
 The retained flag for the LWT message (see MQTTAsync_message.retained).
char qos
 The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos).

Detailed Description

Defines the MQTT "Last Will and Testament" (LWT) settings for the connect packet.

Definition at line 63 of file MQTTConnect.h.


Field Documentation

MQTTString message

The LWT payload.

Definition at line 72 of file MQTTConnect.h.

char qos

The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos).

Definition at line 81 of file MQTTConnect.h.

unsigned char retained

The retained flag for the LWT message (see MQTTAsync_message.retained).

Definition at line 76 of file MQTTConnect.h.

char struct_id[4]

The eyecatcher for this structure.

must be MQTW.

Definition at line 66 of file MQTTConnect.h.

The version number of this structure.

Must be 0

Definition at line 68 of file MQTTConnect.h.

MQTTString topicName

The LWT topic to which the LWT message will be published.

Definition at line 70 of file MQTTConnect.h.