adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
573 stars 291 forks source link

conflict if MAXBUFFERSIZE is larger than 127 #103

Closed jwende closed 3 years ago

jwende commented 6 years ago

https://github.com/adafruit/Adafruit_MQTT_Library/blob/974f4b8713a83d01b040a0d23b798d3f2978d990/Adafruit_MQTT.cpp#L464

in the case of a larger message (larger than 127 bytes) the remaining packet lenght will take buffer[1] and [2] ... or even [3] so the code needs to take this into account ....

cheers Joerg

maseth commented 3 years ago

See #185 and #183, same problem.

xdylanm commented 3 years ago

this should be resolved with PR #193