|
@ -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;
|
|
|
} |
|
|
} |
|
|