Replies: 3 comments
-
I suspect TCP payload buffering. ESPAsyncTCP forwards the data directly whereas I copy the incoming data to a buffer. On ESP8266 this can be improved with the I didn't benchmark (yet). I've got a few devices that have a 14+ day uptime (with a few MQTT and/or WiFi disconnects). |
Beta Was this translation helpful? Give feedback.
-
I mean the |
Beta Was this translation helpful? Give feedback.
-
Moved to discussions as there is no real issue. Memory usage will always be on my radar though. Comparing libs is a valid metric but I don't want to focus too much because the underlying layer is different. Of course, always open for suggestions or PRs. |
Beta Was this translation helpful? Give feedback.
-
Hi Bert,
yesterday I switched my first device (esp8266) from asyncMqttClient to espMqttClient. Looks good! No crashes, no runaway memory, but also no heavy traffic. Just some status reporting and change of settings going back and forth every few seconds.
In the images below you see the heap of the same firmware running running AsyncMqtt (first and espMqtt (second)
Please ignore the peak in the asyncmqtt graph. I made a mistake with my test board and accidentally posted to the same topic as my real hardware. Also the PC went into suspend mode, but the gist remains the same.
AsyncMqtt
EspMqtt
Summary:
Don't know if these observations play a role, but the most important info is that the free heap doesn't decrease over time :)
So to me it looks really good after 24 hours. 👍
Beta Was this translation helpful? Give feedback.
All reactions