Compare commits
No commits in common. "79748da31cc4f12d6716251c8b3d53db81b42a5a" and "65173c67ad17ed1bb86d7996ea93126ee9249ad1" have entirely different histories.
79748da31c
...
65173c67ad
|
@ -24,8 +24,6 @@ const char MQTT_USERNAME[] = "username";
|
||||||
const char MQTT_PASSWORD[] = "password";
|
const char MQTT_PASSWORD[] = "password";
|
||||||
#endif
|
#endif
|
||||||
uint8_t utc_offset = 7;
|
uint8_t utc_offset = 7;
|
||||||
float current_room_temp = 0;
|
|
||||||
float current_room_humid = 0;
|
|
||||||
|
|
||||||
// Inputs
|
// Inputs
|
||||||
#define VINT_COUNT 16
|
#define VINT_COUNT 16
|
||||||
|
@ -744,20 +742,17 @@ void publish_env_state()
|
||||||
switch (errorCode)
|
switch (errorCode)
|
||||||
{
|
{
|
||||||
case DHTLIB_OK:
|
case DHTLIB_OK:
|
||||||
current_room_humid = env_sensor.getHumidity();
|
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), String(env_sensor.getTemperature()));
|
||||||
current_room_temp = env_sensor.getTemperature();
|
|
||||||
mqtt.publish(String(AC_ROOM_TEMPERATURE_TOPIC), String(current_room_temp));
|
|
||||||
mqtt_client.loop();
|
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();
|
mqtt_client.loop();
|
||||||
if (lcd_current_page == 4)
|
if(lcd_current_page==4) {
|
||||||
{
|
|
||||||
Serial.print("roomtemp.txt=\"");
|
Serial.print("roomtemp.txt=\"");
|
||||||
Serial.print(current_room_temp);
|
Serial.print(env_sensor.getTemperature());
|
||||||
Serial.print("C\"");
|
Serial.print("C\"");
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
Serial.print("roomhumid.txt=\"");
|
Serial.print("roomhumid.txt=\"");
|
||||||
Serial.print(current_room_humid);
|
Serial.print(env_sensor.getHumidity());
|
||||||
Serial.print("%\"");
|
Serial.print("%\"");
|
||||||
lcd_send_stop_bit();
|
lcd_send_stop_bit();
|
||||||
}
|
}
|
||||||
|
@ -823,14 +818,6 @@ void lcd_refresh()
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 4:
|
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)
|
if (ac_mode != 2)
|
||||||
panel.writeStr("temp.txt", String(ac_temperature) + "C");
|
panel.writeStr("temp.txt", String(ac_temperature) + "C");
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue