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

run createJsonData periodically in a way that doesn't block the loop #6

Closed joshua-8 closed 3 years ago

joshua-8 commented 3 years ago

loop() should be able to run quickly, so use of delay() should be avoided

see this forum post for a great example of a method to do this

joshua-8 commented 3 years ago

closed because the esp32 no longer makes json data