Uncommented code to handle subscription packets...
This commit is contained in:
parent
5ea3e3ba72
commit
0b8488d9bf
@ -229,11 +229,11 @@ uint16_t Adafruit_MQTT::processPacketsUntil(uint8_t *buffer, uint8_t waitforpack
|
|||||||
if (packetType == waitforpackettype) {
|
if (packetType == waitforpackettype) {
|
||||||
return len;
|
return len;
|
||||||
} else {
|
} else {
|
||||||
// if (packetType == MQTT_CTRL_PUBLISH) {
|
if (packetType == MQTT_CTRL_PUBLISH) {
|
||||||
// handleSubscriptionPacket(len);
|
handleSubscriptionPacket(len);
|
||||||
// } else {
|
} else {
|
||||||
ERROR_PRINTLN(F("Dropped a packet"));
|
ERROR_PRINTLN(F("Dropped a packet"));
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user