Added support for MHZ19 CO2 sensor

This commit is contained in:
Xose Pérez
2017-12-19 15:22:14 +01:00
parent cb3297183d
commit 77b05086d9
9 changed files with 2075 additions and 1897 deletions

View File

@@ -33,7 +33,7 @@ function sensorType(type) {
"Current", "Voltage", "Active Power", "Apparent Power",
"Reactive Power", "Energy", "Energy (delta)", "Power Factor",
"Analog", "Digital", "Events",
"PM1.0", "PM2.5", "PM10"
"PM1.0", "PM2.5", "PM10", "CO2"
];
if (1 <= type && type <= types.length) return types[type-1];
return null;