You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-07-27 15:01:49 +03:00
Fix missing handleSubscriptionPacket from code formatting.
This commit is contained in:
@ -454,13 +454,16 @@ void Adafruit_MQTT::processPackets(int16_t timeout) {
|
|||||||
elapsed += (endtime - starttime);
|
elapsed += (endtime - starttime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Adafruit_MQTT_Subscribe *Adafruit_MQTT::readSubscription(int16_t timeout) {
|
Adafruit_MQTT_Subscribe *Adafruit_MQTT::readSubscription(int16_t timeout) {
|
||||||
uint16_t i, topiclen, datalen;
|
// Check if data is available to read.
|
||||||
|
uint16_t len = readFullPacket(buffer, MAXBUFFERSIZE, timeout); // return one full packet
|
||||||
|
return handleSubscriptionPacket(len);
|
||||||
|
}
|
||||||
|
|
||||||
// Check if data is available to read.
|
Adafruit_MQTT_Subscribe *Adafruit_MQTT::handleSubscriptionPacket(uint16_t len) {
|
||||||
uint16_t len = readFullPacket(buffer, MAXBUFFERSIZE, timeout); // return one full packet
|
uint16_t i, topiclen, datalen;
|
||||||
if (!len)
|
|
||||||
|
if (!len)
|
||||||
return NULL; // No data available, just quit.
|
return NULL; // No data available, just quit.
|
||||||
DEBUG_PRINT("Packet len: "); DEBUG_PRINTLN(len);
|
DEBUG_PRINT("Packet len: "); DEBUG_PRINTLN(len);
|
||||||
DEBUG_PRINTBUFFER(buffer, len);
|
DEBUG_PRINTBUFFER(buffer, len);
|
||||||
|
Reference in New Issue
Block a user