30-09-2021, 08:19
Hi Developers,
As per my Davis AirLink, I am aware that the 1,3,12 & 24 Hour averages reset on power cycling.
I find this slightly annoying with my AirLink and the similar situation applies with the AQM III.
The thought I had was for avaerages to be periodically saved to NVRAM??? on the ESP32 periodically and then reloaded at boot.
A check could be made as to the saved time Vs the boot time and if under say 5 minutes then they could be deemed valid and then restored.
If more than 5 minutes old, then discarded.
Other option would be a web-page reset option, but that could well require extra code.
Also with regards to the dust sensor read interval of 10 minutes, is there any problem with lowering it's value to say 1 or 2 minutes?
I am using Sensirion SPS30 Sensors & understand they have a very long life span quoted on the datasheet as > 10 years @ 24 hour operation.
Just not sure how a one minute interval would time in with the 40 second startup wait time.
Also I notice that the two Leds on the PCB receive very little mention in the code.
Just the pin definitions & the Fade option for Led1.
Do others have any suggested uses to which they can be put that are of value?
Thanks
Phil.
As per my Davis AirLink, I am aware that the 1,3,12 & 24 Hour averages reset on power cycling.
I find this slightly annoying with my AirLink and the similar situation applies with the AQM III.
The thought I had was for avaerages to be periodically saved to NVRAM??? on the ESP32 periodically and then reloaded at boot.
A check could be made as to the saved time Vs the boot time and if under say 5 minutes then they could be deemed valid and then restored.
If more than 5 minutes old, then discarded.
Other option would be a web-page reset option, but that could well require extra code.
Also with regards to the dust sensor read interval of 10 minutes, is there any problem with lowering it's value to say 1 or 2 minutes?
I am using Sensirion SPS30 Sensors & understand they have a very long life span quoted on the datasheet as > 10 years @ 24 hour operation.
Code:
const uint8_t readInterval = 10;
const uint8_t readsPerHour = 60 / readInterval;
Just not sure how a one minute interval would time in with the 40 second startup wait time.
Also I notice that the two Leds on the PCB receive very little mention in the code.
Just the pin definitions & the Fade option for Led1.
Do others have any suggested uses to which they can be put that are of value?
Thanks
Phil.