mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-06-25 07:41:33 +02:00
Removed PM0.3 particle count to avoid patching of pms library
This commit is contained in:
@ -125,7 +125,7 @@ unsigned long previousPm = 0;
|
||||
int pm25 = -1;
|
||||
int pm01 = -1;
|
||||
int pm10 = -1;
|
||||
int pm03PCount = -1;
|
||||
//int pm03PCount = -1;
|
||||
|
||||
const int tempHumInterval = 5000;
|
||||
unsigned long previousTempHum = 0;
|
||||
@ -273,12 +273,12 @@ void updatePm() {
|
||||
pm01 = data1.PM_AE_UG_1_0;
|
||||
pm25 = data1.PM_AE_UG_2_5;
|
||||
pm10 = data1.PM_AE_UG_10_0;
|
||||
pm03PCount = data1.PM_RAW_0_3;
|
||||
// pm03PCount = data1.PM_RAW_0_3;
|
||||
} else {
|
||||
pm01 = -1;
|
||||
pm25 = -1;
|
||||
pm10 = -1;
|
||||
pm03PCount = -1;
|
||||
// pm03PCount = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -536,7 +536,7 @@ void sendToServer() {
|
||||
(pm01 < 0 ? "" : ", \"pm01\":" + String(pm01)) +
|
||||
(pm25 < 0 ? "" : ", \"pm02\":" + String(pm25)) +
|
||||
(pm10 < 0 ? "" : ", \"pm10\":" + String(pm10)) +
|
||||
(pm03PCount < 0 ? "" : ", \"pm003_count\":" + String(pm03PCount)) +
|
||||
// (pm03PCount < 0 ? "" : ", \"pm003_count\":" + String(pm03PCount)) +
|
||||
(TVOC < 0 ? "" : ", \"tvoc_index\":" + String(TVOC)) +
|
||||
(NOX < 0 ? "" : ", \"nox_index\":" + String(NOX)) +
|
||||
", \"atmp\":" + String(temp) +
|
||||
|
@ -1,5 +1,5 @@
|
||||
name=AirGradient Air Quality Sensor
|
||||
version=2.4.13
|
||||
version=2.4.14
|
||||
author=AirGradient <support@airgradient.com>
|
||||
maintainer=AirGradient <support@airgradient.com>
|
||||
sentence=ESP8266 library for an air quality sensor featuring PM2.5, CO2, Temperature, TVOC and Humidity with OLED display.
|
||||
|
Reference in New Issue
Block a user