ESP32-Pico Failing to Publish MQTT Messages Due to Payload Size Exceeding Broker's Limit

Hey guys while sending sensor data from an ESP32-Pico to an MQTT broker,And combining multiple sensor readings into a single MQTT message, the payload size exceeds the broker's limit. As a result, the publish operation fails, and the transmission is interrupted, causing data loss. Error Message: E (48532) MQTT_CLIENT: Payload size exceeds the maximum limit The error occurred during testing when adding additional sensor data to the MQTT message, leading to transmission failures shown on the serial monitor. Any idea why the ESP32-Pico fails to publish MQTT messages when the payload size exceeds a certain threshold, leading to transmission interruptions?
2 Replies
wafa_ath
wafa_ath3mo ago
Try to Split the data into smaller messages if possible The ESP32-Pico fails to publish MQTT messages when the payload exceeds the broker's size limit.
Daniel kalu
Daniel kalu3mo ago
Splitting the data into smaller messages might work. But i was thinking what if i compress the data or adjust the MQTT broker settings, will this approach help resolve the payload size issue or i should just try splitting the data ? But thanks for the suggestion 🙏
Want results from more Discord servers?
Add your server