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...
 
QoS qos
 The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos). More...
 
char qos
 The quality of service setting for the LWT message (see MQTTAsync_message.qos and qos). More...
 
uint8_t retained
 The retained flag for the LWT message (see MQTTAsync_message.retained). 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...
 
uint8_t struct_version
 The version number of 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...
 

QoS MQTTPacket_willOptions::qos

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

char MQTTPacket_willOptions::qos

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

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

uint8_t MQTTPacket_willOptions::retained

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

unsigned char MQTTPacket_willOptions::retained

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

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

char MQTTPacket_willOptions::struct_id

The eyecatcher for this structure.

must be MQTW.

uint8_t MQTTPacket_willOptions::struct_version

The version number of this structure.

Must be 0

int MQTTPacket_willOptions::struct_version

The version number of this structure.

Must be 0

MQTTString MQTTPacket_willOptions::topicName