Skip to content

Commit 52e04be

Browse files
committed
loren review
1 parent a80db20 commit 52e04be

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Adafruit_MQTT.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ void Adafruit_MQTT::processSubscriptionPacket(Adafruit_MQTT_Subscribe *sub) {
239239
} else if (sub->callback_io != NULL) {
240240
// execute callback in io mode
241241
((sub->io_mqtt)->*(sub->callback_io))((char *)sub->lastread, sub->datalen);
242+
} else {
243+
DEBUG_PRINTLN("ERROR: Subscription packet did not have an associated callback");
244+
return;
242245
}
243246
// mark subscription message as "read""
244247
sub->new_message = false;

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=Adafruit MQTT Library
2-
version=2.4.4
2+
version=2.5.0
33
author=Adafruit
44
maintainer=Adafruit <info@adafruit.com>
55
sentence=MQTT library that supports the FONA, ESP8266, ESP32, Yun, and generic Arduino Client hardware.

0 commit comments

Comments
 (0)