HARestAPI
HARestAPI copied to clipboard
Memory leak
When uses sendCustomHAData every request couses heap corruption. It present in 0.3, but 0.2 ok,
Interesting, I use code very similar to ESP8266HTTPClient code for ESP8266. What device are you trying to run the code on?
ESP32. When i have more time, i will test it more. But i was reading about HTTPClient in ESP32 had a leak before. I guess problem might be in "http->addHeader", becouse need cleen after it sended (probaly), btw .end() cant clean that. Next week i have more time, im use HA every day in different projetct, and your project helpful - im try to fix that with u)
I guess you are referring to https://github.com/espressif/arduino-esp32/issues/3659