mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-29 16:37:17 +02:00
Report PM data to metrics API for AirGradient ONE
This commit is contained in:
@ -86,6 +86,13 @@ String OpenMetrics::getPayload(void) {
|
|||||||
_temp = measure.Temperature;
|
_temp = measure.Temperature;
|
||||||
_hum = measure.Humidity;
|
_hum = measure.Humidity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.hasSensorPMS1) {
|
||||||
|
pm01 = measure.pm01_1;
|
||||||
|
pm25 = measure.pm25_1;
|
||||||
|
pm10 = measure.pm10_1;
|
||||||
|
pm03PCount = measure.pm03PCount_1;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (config.hasSensorPMS1) {
|
if (config.hasSensorPMS1) {
|
||||||
_temp = measure.temp_1;
|
_temp = measure.temp_1;
|
||||||
|
Reference in New Issue
Block a user