adafruit / Adafruit_MQTT_Library

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

[ESP32] MQTT Payload not getting triggered only when the payload is exactly 104 and 105 characters?!? #221

Open TNeutron opened 1 year ago

TNeutron commented 1 year ago

Board: ESP32 Environment: PlatformIO Framework: Arduino

I have a display and RFID. The RFID number is published on each trigger and when something is sent to ESP32, It splits the payload and displays in the display.

Strangely, the ESP is failing to identify and execute tasks only then the incoming payload is 105 and 104 characters. It seems to be working perfectly fine when the payload is more or less than that threshold. Editing macros of maximum buffer sizes and such from the library files did help but definitely not working reliably. Did anyone face same issues? Why is it happening and how to reliably solve it?

Upon enabling the debug mode, whenever there is any incoming message, it prints the data. But for 104 and 105-character payloads, it doesn't print the incoming payload either.