Main changes is restructuring Measurement class on AgValue files. Each measurements has average value that are always calculated based on max period length (calculateMaxPeriod()) set for moving average calculation.
Other includes
Every measurements data from each sensor have an average value which are sent to AirGradient server, MQTT and Local Server fetch. On oled display and led bar indication still using last reading value.
Relative humidity now is in float 2 decimals precision (except showing on oled display)
Remove ESP restart when PM sensor read failed on X times
Interval for SHT sensor reading now set to 6s
Optional debug every reading interval to serial monitor. Sensor debug to serial monitor is the moving average value
PMSBase::compensate using float data type for arguments and return (previously int).
Directly return 0 when PM value is 0
Send indication when consecutively update invalid value
Changes
Main changes is restructuring Measurement class on AgValue files. Each measurements has average value that are always calculated based on max period length (
calculateMaxPeriod()
) set for moving average calculation.Other includes
PMSBase::compensate
usingfloat
data type for arguments and return (previouslyint
).