Skip to content

Commit 87275a7

Browse files
committed
remove isReady field from JSON because it don't work correctly
1 parent 4f3b691 commit 87275a7

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ Topic: co2-meter/`{device ID}`/out/`{command}`
9797
| network.wifiSsid | SSID of connected wifi | string |
9898
| network.ip | ip address of the module | string |
9999
| co2.isPreheating | TRUE if the sensor is preheated | boolean |
100-
| co2.isReady | ignore | boolean |
101100
| co2.temperature | temperature from sensor (in °C) | number |
102101
| co2.ppm | CO2 concentration in the air (in ppm) | number |
103102

src/main.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ extern "C"
3030
#define DEVICE_ID (Sprintf("%06" PRIx64, ESP.getEfuseMac() >> 24)) // unique device ID
3131
#define uS_TO_S_FACTOR 1000000 // Conversion factor for micro seconds to seconds
3232

33-
String version = "1.1.2";
33+
String version = "1.1.3";
3434

3535
AsyncMqttClient mqttClient;
3636

@@ -154,7 +154,6 @@ void sendInfo()
154154
// CO2 meter
155155
JsonObject co2Meter = doc.createNestedObject("co2");
156156
co2Meter["isPreheating"] = co2Sensor.isPreHeating();
157-
co2Meter["isReady"] = co2Sensor.isReady();
158157
co2Meter["temperature"] = lastTemperature;
159158
co2Meter["ppm"] = lastCo2Value > 0 ? lastCo2Value : 0;
160159

0 commit comments

Comments
 (0)