Browse Source

use weather variables

main
Hendrik Langer 7 years ago
parent
commit
8217a40d28
  1. 6
      src/main.cpp

6
src/main.cpp

@ -280,9 +280,9 @@ void transmitStatus() {
StaticJsonBuffer<200> jsonBuffer; StaticJsonBuffer<200> jsonBuffer;
JsonObject& root = jsonBuffer.createObject(); JsonObject& root = jsonBuffer.createObject();
if (bme280.valid) { if (bme280.valid) {
root["temperature"] = bme280.readTemperature(); root["temperature"] = temp;
root["humidity"] = bme280.readHumidity(); root["humidity"] = humi;
root["pressure"] = bme280.readPressure(); root["pressure"] = pres;
} else { } else {
//root["temperature"] = internal_temp; //root["temperature"] = internal_temp;
} }

Loading…
Cancel
Save