Commit Graph
40 Commits
Author SHA1 Message Date
samuelbles07 67d377a514 Rename measurementCycle on agVlaue to Measures
capitalize static const for image bit
2025-03-28 13:45:07 +07:00
samuelbles07 070a103234 build CE payload include tvoc and nox index
If measures value invalid, set it to empty
New schedule to print network signal
2025-03-26 16:18:48 +07:00
samuelbles07 30622fca99 MeasurementCycle queue only applied for cellular
Cellular post measures payload different with wifi
Update submodule to support different cellular post endpoint
2025-03-21 04:40:27 +07:00
samuelbles07 66b0c63de5 New function for measurement cycle
getMeasurementCycle to capture current measurement that will be added to queue
buildMeasurementPayload using measurementCycle to build json string as transmission payload
2025-03-16 02:19:22 +07:00
samuelbles07 1c42ff083d Make PM correction applied for all model 2025-02-06 15:58:15 +07:00
samuelbles07 af16c1c060 Apply temphum correction 2025-01-24 09:56:01 +07:00
samuelbles07 1666923ab3 Add AirGradient and Configuration object to AgValue 2025-01-23 03:33:47 +07:00
samuelbles07 89475ddf95 Get correction of temp and hum based on configuration 2025-01-23 01:21:27 +07:00
samuelbles07 6312612ada resetReason and freeheap only for esp32 based mcu 2024-11-30 00:45:46 +07:00
samuelbles07 40d38a75d8 Add reset reason to transmission payload 2024-11-29 18:01:14 +07:00
samuelbles07 2be91b3968 Boot count using setter and getter 2024-11-21 02:30:03 +07:00
samuelbles07 a30535f75f Use avg value for display and led bar 2024-11-10 04:13:58 +07:00
samuelbles07 a513943cba New agvalue member to get avg values 2024-11-09 23:27:29 +07:00
samuelbles07 7b0381dea3 Apply pm correction to display and led bar 2024-11-02 14:44:32 +07:00
samuelbles07 e6696f3d41 New particle count 0.5 and 5.0 2024-10-29 23:51:19 +07:00
samuelbles07 eeba41f497 Include other PMS data to measurements 2024-10-22 17:13:15 +07:00
samuelbles07 83aa6a4502 Apply for other monitor series 2024-10-22 00:11:58 +07:00
samuelbles07 8a87b865e6 Handle consecutive invalid value update
Set measurements type average value to invalid when invalidCounter reached max period
2024-10-21 22:37:44 +07:00
samuelbles07 8548d3e9f4 Optional to debug every measurement update value 2024-10-21 00:43:04 +07:00
samuelbles07 f7e1363da9 Rename function 2024-10-21 00:22:50 +07:00
samuelbles07 43ca0a2c2e get and getFloat function specific for latest value
Update functions comments
2024-10-20 20:04:07 +07:00
samuelbles07 84884d0c15 Move average member value to update struct 2024-10-20 19:20:17 +07:00
samuelbles07 f36f860c2e Switch to moving average for sensor data
average value to floating points
2024-10-20 19:01:41 +07:00
samuelbles07 0ccf46c219 Rename AgValueType to MeasurementType
Just use plain enum instead of enum class
Remove unecessary legacy variables and function
2024-10-19 01:32:41 +07:00
samuelbles07 ed344d3e1a measurement toString
Tested on I-9PSL monitor
Update OneOpenAir post and mqtt to use new measurement toString
2024-10-17 00:53:49 +07:00
samuelbles07 ac838efdb5 validate measurement type channel 2024-10-14 01:25:35 +07:00
samuelbles07 751d4e8380 Get value from each data type 2024-10-14 01:22:44 +07:00
samuelbles07 6925b1ac9a Provide channel for neccessary ValueType
To support OA that have 2 PMS sensor
2024-10-13 23:30:03 +07:00
samuelbles07 ea91cf9b6c New function to set max update before averaging
Rename enum member
2024-10-11 22:47:43 +07:00
samuelbles07 467b3e8637 Tidy up 2024-10-11 22:11:26 +07:00
samuelbles07 2a5cf78b68 updateValue return bool to indicate max average is set or not
Add more comments
Update naming
2024-10-11 22:05:03 +07:00
samuelbles07 9c09b82efd The data structure and update value function 2024-10-11 20:54:05 +07:00
samuelbles07 60d01c0d94 First init the data structure 2024-10-10 22:51:37 +07:00
Phat Nguyen 040bd28038 Add report PMS5003 and PMS5003T firmware version 2024-08-07 08:50:43 +07:00
Phat Nguyen d2d81f6b4b OTA update each 60 min 2024-06-05 09:29:30 +07:00
Phat Nguyen c04ab90fd2 Update OTA processing message. Fix always retry of bootCount = 0 2024-05-17 10:32:20 +07:00
Phat Nguyen 563bdfe4b2 Change the OTA update period use timestamp to bootCount 2024-05-15 17:09:06 +07:00
Phat Nguyen 4577082731 clarifying method/variable/class names 2024-04-07 16:39:01 +07:00
Phat Nguyen f681d4b2e8 add WiFiManager and 'U8g2 to Libraries` 2024-04-04 18:35:15 +07:00
Phat Nguyen 027ffeaa92 [temporary commit] 2024-04-03 21:26:04 +07:00