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

add error output on dropped packets, and mqtt w/callbacks example

This commit is contained in:
ladyada
2016-07-08 17:16:07 -04:00
parent 4269d87492
commit 82873050b6
3 changed files with 159 additions and 0 deletions

View File

@ -242,6 +242,8 @@ uint16_t Adafruit_MQTT::processPacketsUntil(uint8_t *buffer, uint8_t waitforpack
if ((buffer[0] >> 4) == waitforpackettype) {
//DEBUG_PRINTLN(F("Found right packet"));
return len;
} else {
ERROR_PRINTLN(F("Dropped a packet"));
}
}
return 0;