adafruit / Adafruit_MQTT_Library

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

Update Adafruit_MQTT.cpp #98

Closed kmatch98 closed 4 years ago

kmatch98 commented 6 years ago

Updated the function: readSubscription Change: Updated bug where packets > 128 characters were scrapped Bug fixed: Updated the references to the bytes to adapt for the variable number of "length" bytes that are included (MQTT docs specify a maximum of 4 "length" bytes. Remaining possible issues: No error checking to ensure that the packet length parameter is within the limits of the MQTT spec (4 length bytes maximum)