API  2.2
TSmarT Software Library
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
MQTTHeader Union Reference

#include <MQTTPacket.h>

Data Fields

char byte
unsigned int retain: 1
unsigned int qos: 2
unsigned int dup: 1
unsigned int type: 4

Detailed Description

Bitfields for the MQTT header byte.

Field Documentation

char byte

the whole byte

unsigned int dup

DUP flag bit

unsigned int qos

QoS value, 0, 1 or 2

unsigned int retain

retained flag bit

unsigned int type

message type nibble