Browse Source

use weather variables

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

6
src/main.cpp

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

Loading…
Cancel
Save