ericklein / air_quality

displays and logs local indoor and outdoor weather and air quality information
MIT License
0 stars 0 forks source link

filter OWM JSON results before handling #27

Closed ericklein closed 1 year ago

ericklein commented 2 years ago

use the arduinojson library filtering functions to reduce memory requirements by filtering what JSON data is desired from larger object.

ericklein commented 1 year ago

Memory usage to get the OWM json results is isolated to a function. That function has unused fields commented out, along with the corresponding elements in the global data struct. A arduinojson filter call would lower temporary memory usage somewhat, but is not needed on ESP32 at this time.