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 |
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_connect(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTDeserialize_subscribe(), MQTTDeserialize_unsubscribe(), MQTTFormat_toClientString(), MQTTFormat_toServerString(), MQTTPacket_read(), MQTTPacket_readnb(), MQTTSerialize_ack(), MQTTSerialize_connack(), MQTTSerialize_connect(), MQTTSerialize_publish(), MQTTSerialize_suback(), MQTTSerialize_subscribe(), MQTTSerialize_unsuback(), MQTTSerialize_unsubscribe(), MQTTSerialize_zero(), and readPacket().
unsigned char MQTTHeader::byte |
the whole byte
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_connect(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTDeserialize_subscribe(), MQTTDeserialize_unsubscribe(), MQTTFormat_toClientString(), MQTTFormat_toServerString(), MQTTPacket_read(), MQTTPacket_readnb(), MQTTSerialize_ack(), MQTTSerialize_connack(), MQTTSerialize_connect(), MQTTSerialize_publish(), MQTTSerialize_suback(), MQTTSerialize_subscribe(), MQTTSerialize_unsuback(), MQTTSerialize_unsubscribe(), MQTTSerialize_zero(), and readPacket().
unsigned int MQTTHeader::dup |
unsigned int MQTTHeader::qos |
QoS value, 0, 1 or 2.
Referenced by MQTTDeserialize_publish(), MQTTSerialize_ack(), MQTTSerialize_publish(), MQTTSerialize_subscribe(), and MQTTSerialize_unsubscribe().
unsigned int MQTTHeader::retain |
retained flag bit
Referenced by MQTTDeserialize_publish(), and MQTTSerialize_publish().
unsigned int MQTTHeader::type |
message type nibble
Referenced by MQTTDeserialize_ack(), MQTTDeserialize_connack(), MQTTDeserialize_connect(), MQTTDeserialize_publish(), MQTTDeserialize_suback(), MQTTDeserialize_subscribe(), MQTTDeserialize_unsubscribe(), MQTTFormat_toClientString(), MQTTFormat_toServerString(), MQTTPacket_read(), MQTTPacket_readnb(), MQTTSerialize_ack(), MQTTSerialize_connack(), MQTTSerialize_connect(), MQTTSerialize_publish(), MQTTSerialize_suback(), MQTTSerialize_subscribe(), MQTTSerialize_unsuback(), MQTTSerialize_unsubscribe(), MQTTSerialize_zero(), and readPacket().