esphome-p1mini: Could not allocate memory for JSON document!
I’ve had it running for almost a week now but this morning it stopped sending data. The wifi signal is updating and sent to Home assistant but no other values are updated. When viewing the webpage of p1mini state is set to NA on every row and on some occasions i got the error:
19:48:24 | [E] | [json:043] | Could not allocate memory for JSON document! Overflowed largest free heap block: 8 bytes
Is this a known issue?
There is pretty bad connection with the Wemos D1 mini in the meter cabinet but the data transfer has been good since the installation. Until today.
Meter: Landis+Gyr E360
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 18 (8 by maintainers)
I would like to keep the main Readme page clean and focused on the D1mini, but I could see having a separate document with a link from the main Readme with advice for anyone wanting to get it working on alternative boards. Not just ESP32:s, even if that is a good start.
It would be interesting to have instructions for setting up another UART (GPIO 16&17), since that is one (the only?) advantage an ESP32 has over an 8266.
Personally, if the RTS signal is working (and it seems to be since you are getting sensor readings) i would not mess with the external pull-up on the principle of “If it isn’t broken, don’t fix it”.
… I guess not.
Anyway, I just made an update which contains some more memory cleanup, but I don’t think it will make any difference in practice.
But if anyone sees an error message in the log: “Memory leak detected!”, please let me know!