Compare commits

..

No commits in common. "79748da31cc4f12d6716251c8b3d53db81b42a5a" and "65173c67ad17ed1bb86d7996ea93126ee9249ad1" have entirely different histories.

1 changed files with 5 additions and 18 deletions

View File

@ -24,8 +24,6 @@ const char MQTT_USERNAME[] = "username";
const char MQTT_PASSWORD[] = "password";
#endif
uint8_t utc_offset = 7;
float current_room_temp = 0;
float current_room_humid = 0;
// Inputs
#define VINT_COUNT 16
@ -744,20 +742,17 @@ void publish_env_state()
switch (errorCode)
{
case DHTLIB_OK:
current_room_humid = env_sensor.getHumidity();
current_room_temp = env_sensor.getTemperature();
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), String(current_room_temp));
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), String(env_sensor.getTemperature()));
mqtt_client.loop();
mqtt.publish(String(AC_HUMIDITY_TOPIC), String(current_room_humid));
mqtt.publish(String(AC_HUMIDITY_TOPIC), String(env_sensor.getHumidity()));
mqtt_client.loop();
if (lcd_current_page == 4)
{
if(lcd_current_page==4) {
Serial.print("roomtemp.txt=\"");
Serial.print(current_room_temp);
Serial.print(env_sensor.getTemperature());
Serial.print("C\"");
lcd_send_stop_bit();
Serial.print("roomhumid.txt=\"");
Serial.print(current_room_humid);
Serial.print(env_sensor.getHumidity());
Serial.print("%\"");
lcd_send_stop_bit();
}
@ -823,14 +818,6 @@ void lcd_refresh()
}
break;
case 4:
Serial.print("roomtemp.txt=\"");
Serial.print(current_room_temp);
Serial.print("C\"");
lcd_send_stop_bit();
Serial.print("roomhumid.txt=\"");
Serial.print(current_room_humid);
Serial.print("%\"");
lcd_send_stop_bit();
if (ac_mode != 2)
panel.writeStr("temp.txt", String(ac_temperature) + "C");
else