Compare commits
2 Commits
6b2f260153
...
65173c67ad
Author | SHA1 | Date |
---|---|---|
Siwat Sirichai | 65173c67ad | |
Siwat Sirichai | cc418fa74c |
|
@ -746,6 +746,16 @@ void publish_env_state()
|
||||||
mqtt_client.loop();
|
mqtt_client.loop();
|
||||||
mqtt.publish(String(AC_HUMIDITY_TOPIC), String(env_sensor.getHumidity()));
|
mqtt.publish(String(AC_HUMIDITY_TOPIC), String(env_sensor.getHumidity()));
|
||||||
mqtt_client.loop();
|
mqtt_client.loop();
|
||||||
|
if(lcd_current_page==4) {
|
||||||
|
Serial.print("roomtemp.txt=\"");
|
||||||
|
Serial.print(env_sensor.getTemperature());
|
||||||
|
Serial.print("C\"");
|
||||||
|
lcd_send_stop_bit();
|
||||||
|
Serial.print("roomhumid.txt=\"");
|
||||||
|
Serial.print(env_sensor.getHumidity());
|
||||||
|
Serial.print("%\"");
|
||||||
|
lcd_send_stop_bit();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), "ERROR");
|
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), "ERROR");
|
||||||
|
|
Loading…
Reference in New Issue