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
 
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...
 

struct { ... } MQTTHeader::bits
unsigned int MQTTHeader::retain