adafruit / Adafruit_MQTT_Library

Arduino library for MQTT support
MIT License
566 stars 292 forks source link

Fix how subscription packet length is calculated #227

Closed brentru closed 10 months ago

brentru commented 10 months ago

This pull request corrects how subscription packet length is calculated and increases the maximum buffer size for MCUs with more flash. It resolves an active WipperSnapper issue where large subscription packets (containing multiple i2c sensor initialization messages) fail to decode.

Resolves: https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/issues/452 https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/issues/437 https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/issues/408