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... | |
struct { ... } MQTTHeader::bits |
unsigned char MQTTHeader::byte |
the whole byte
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTPacket_InitHeader(), MQTTSerialize_ack(), MQTTSerialize_connect(), MQTTSerialize_publish(), MQTTSerialize_subscribe(), MQTTSerialize_unsubscribe(), MQTTSerialize_zero(), and readPacket().
unsigned int MQTTHeader::dup |
DUP flag bit.
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_publish(), and MQTTPacket_InitHeader().
unsigned int MQTTHeader::qos |
QoS value, 0, 1 or 2.
Referenced by MQTTDeserialize_publish(), and MQTTPacket_InitHeader().
unsigned int MQTTHeader::retain |
retained flag bit
Referenced by MQTTDeserialize_publish(), and MQTTPacket_InitHeader().
unsigned int MQTTHeader::type |
message type nibble
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTPacket_InitHeader(), and readPacket().