Constants defined in the MQTT library. More...
Macros | |
#define | MQTT_PACKET_ID_INVALID ( ( uint16_t ) 0U ) |
Invalid packet identifier. More... | |
#define | MQTT_SUB_UNSUB_MAX_VECTORS ( 4U ) |
Maximum number of vectors in subscribe and unsubscribe packet. | |
#define | MQTT_PACKET_TYPE_CONNECT ( ( uint8_t ) 0x10U ) |
CONNECT (client-to-server). | |
#define | MQTT_PACKET_TYPE_CONNACK ( ( uint8_t ) 0x20U ) |
CONNACK (server-to-client). | |
#define | MQTT_PACKET_TYPE_PUBLISH ( ( uint8_t ) 0x30U ) |
PUBLISH (bidirectional). | |
#define | MQTT_PACKET_TYPE_PUBACK ( ( uint8_t ) 0x40U ) |
PUBACK (bidirectional). | |
#define | MQTT_PACKET_TYPE_PUBREC ( ( uint8_t ) 0x50U ) |
PUBREC (bidirectional). | |
#define | MQTT_PACKET_TYPE_PUBREL ( ( uint8_t ) 0x62U ) |
PUBREL (bidirectional). | |
#define | MQTT_PACKET_TYPE_PUBCOMP ( ( uint8_t ) 0x70U ) |
PUBCOMP (bidirectional). | |
#define | MQTT_PACKET_TYPE_SUBSCRIBE ( ( uint8_t ) 0x82U ) |
SUBSCRIBE (client-to-server). | |
#define | MQTT_PACKET_TYPE_SUBACK ( ( uint8_t ) 0x90U ) |
SUBACK (server-to-client). | |
#define | MQTT_PACKET_TYPE_UNSUBSCRIBE ( ( uint8_t ) 0xA2U ) |
UNSUBSCRIBE (client-to-server). | |
#define | MQTT_PACKET_TYPE_UNSUBACK ( ( uint8_t ) 0xB0U ) |
UNSUBACK (server-to-client). | |
#define | MQTT_PACKET_TYPE_PINGREQ ( ( uint8_t ) 0xC0U ) |
PINGREQ (client-to-server). | |
#define | MQTT_PACKET_TYPE_PINGRESP ( ( uint8_t ) 0xD0U ) |
PINGRESP (server-to-client). | |
#define | MQTT_PACKET_TYPE_DISCONNECT ( ( uint8_t ) 0xE0U ) |
DISCONNECT (client-to-server). | |
#define | MQTT_PUBLISH_ACK_PACKET_SIZE ( 4UL ) |
The size of MQTT PUBACK, PUBREC, PUBREL, and PUBCOMP packets, per MQTT spec. | |
#define | MQTT_STATE_CURSOR_INITIALIZER ( ( size_t ) 0 ) |
Initializer value for an MQTTStateCursor_t, indicating a search should start at the beginning of a state record array. | |
Constants defined in the MQTT library.
#define MQTT_PACKET_ID_INVALID ( ( uint16_t ) 0U ) |
Invalid packet identifier.
Zero is an invalid packet identifier as per MQTT v3.1.1 spec.