Microchip® Advanced Software Framework

MQTTPacket_willOptions Struct Reference

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

#include <MQTTConnect.h>

Data Fields

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

MQTTString MQTTPacket_willOptions::message
char MQTTPacket_willOptions::qos

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

Referenced by MQTTDeserialize_connect(), MQTTSerialize_connect(), and MQTTStringFormat_connect().

unsigned char MQTTPacket_willOptions::retained

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

Referenced by MQTTDeserialize_connect(), MQTTSerialize_connect(), and MQTTStringFormat_connect().

char MQTTPacket_willOptions::struct_id[4]

The eyecatcher for this structure.

must be MQTW.

int MQTTPacket_willOptions::struct_version

The version number of this structure.

Must be 0

MQTTString MQTTPacket_willOptions::topicName

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

Referenced by MQTTDeserialize_connect(), MQTTSerialize_connect(), MQTTSerialize_connectLength(), and MQTTStringFormat_connect().