Handle publish packets when they're not the expected packet type

This commit is contained in:
Lucas Jandrew 2020-02-23 22:42:43 -05:00
parent 259cba0837
commit 5ea3e3ba72
2 changed files with 609 additions and 561 deletions

File diff suppressed because it is too large Load Diff

View File

@ -195,6 +195,9 @@ class Adafruit_MQTT {
// that subscribe should be called first for each topic that receives messages!
Adafruit_MQTT_Subscribe *readSubscription(int16_t timeout=0);
// Handle any data coming in for subscriptions and fires them off to the appropriate callback
Adafruit_MQTT_Subscribe *handleSubscriptionPacket(uint16_t len);
void processPackets(int16_t timeout);
// Ping the server to ensure the connection is still alive.