1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-30 13:23:06 +03:00

adds packet ids for publish QoS > 0

also adds packet id counter so packet ids aren't
static values. this is a step in the direction
of QoS 1 support
This commit is contained in:
Todd Treece
2015-10-05 11:21:05 -04:00
parent 765a2feaff
commit b9c9a28883
2 changed files with 24 additions and 8 deletions

View File

@ -193,6 +193,7 @@ class Adafruit_MQTT {
uint8_t will_qos;
uint8_t will_retain;
uint8_t buffer[MAXBUFFERSIZE]; // one buffer, used for all incoming/outgoing
uint16_t packet_id_counter = 0;
private:
Adafruit_MQTT_Subscribe *subscriptions[MAXSUBSCRIPTIONS];