brown-SSW / brown-solar-charger

This program monitors a solar power system and runs a physical and online dashboard.
https://brown-ssw.github.io/brown-solar-charger/
4 stars 1 forks source link

optimize creation of .json document #3

Closed joshua-8 closed 3 years ago

joshua-8 commented 3 years ago

I don't understand the Json library particularly well so maybe I'm wrong that this would help, but here's something that might give the esp32 a bit less work to do.

convert the json document (dataDoc) to a globally declared String right after updating the data in the json document. Then when the data is requested the String can be sent right away without doing the string conversion each time

joshua-8 commented 3 years ago

the esp32 will no longer serve the json file, so this issue can be closed