Microchip® Advanced Software Framework

MQTTHeader Union Reference

Bitfields for the MQTT header byte.

#include <MQTTPacket.h>

Data Fields

struct {
   unsigned int   dup: 1
 DUP flag bit. More...
 
   unsigned int   qos: 2
 QoS value, 0, 1 or 2. More...
 
   unsigned int   retain: 1
 retained flag bit More...
 
   unsigned int   type: 4
 message type nibble More...
 
bits
 
unsigned char byte
 the whole byte More...
 

unsigned int MQTTHeader::qos
unsigned int MQTTHeader::retain

retained flag bit

Referenced by MQTTDeserialize_publish(), and MQTTSerialize_publish().