You've already forked Adafruit_MQTT_Library
mirror of
https://github.com/adafruit/Adafruit_MQTT_Library.git
synced 2025-06-11 22:48:09 +03:00
adds zero byte client id option for 3.1.1
This commit is contained in:
@ -294,6 +294,12 @@ uint8_t Adafruit_MQTT::connectPacket(uint8_t *packet) {
|
||||
} else {
|
||||
if (pgm_read_byte(clientid) != 0) {
|
||||
p = stringprint_P(p, clientid);
|
||||
} else {
|
||||
p[0] = 0x0;
|
||||
p++;
|
||||
p[0] = 0x0;
|
||||
p++;
|
||||
DEBUG_PRINTLN(F("SERVER GENERATING CLIENT ID"));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user