1
0
mirror of https://github.com/adafruit/Adafruit_MQTT_Library.git synced 2025-07-29 02:02:00 +03:00

add new processSubscriptionPacket func

This commit is contained in:
brentru
2022-10-28 13:01:06 -04:00
parent 0ba089d1e8
commit 5c00e84d08
2 changed files with 31 additions and 49 deletions

View File

@ -209,10 +209,12 @@ public:
// messages!
Adafruit_MQTT_Subscribe *readSubscription(int16_t timeout = 0);
// Handle any data coming in for subscriptions and fires them off to the
// appropriate callback
// Handle any data coming in for subscriptions
Adafruit_MQTT_Subscribe *handleSubscriptionPacket(uint16_t len);
// Execute a subscription packet's associated callback and mark as "read"
void processSubscriptionPacket(Adafruit_MQTT_Subscribe *sub);
void processPackets(int16_t timeout);
// Ping the server to ensure the connection is still alive.