|
@@ -141,9 +141,9 @@ void reconnect() {
|
|
|
if (client.connect(clientId.c_str())) {
|
|
|
Serial.println("connected");
|
|
|
// Once connected, publish an announcement...
|
|
|
- client.publish("outTopic", "hello world");
|
|
|
+ //client.publish("outTopic", "hello world");
|
|
|
// ... and resubscribe
|
|
|
- client.subscribe("inTopic");
|
|
|
+ //client.subscribe("inTopic");
|
|
|
} else {
|
|
|
Serial.print("failed, rc=");
|
|
|
Serial.print(client.state());
|
|
@@ -348,12 +348,14 @@ void loop() {
|
|
|
lcd.print(" ");
|
|
|
//lcd.print(humstr2);
|
|
|
lcd.print(hum_str);
|
|
|
- lcd.print("% ");
|
|
|
+ lcd.print("% ");
|
|
|
|
|
|
- if ( heatingMode == 1 ) lcd.write((uint8_t)1); // Sonne
|
|
|
- else if ( heatingMode == 2 ) lcd.write((uint8_t)0); // Mond
|
|
|
- else lcd.print("0");
|
|
|
+ // display current mode on LCD
|
|
|
+ if ( heatingMode == 1 ) lcd.write((uint8_t)1); // sun symbol if mode is day/normal
|
|
|
+ else if ( heatingMode == 2 ) lcd.write((uint8_t)0); // moon symbol if mode is night/reduction
|
|
|
+ else lcd.print("0"); // 0 if mode is heating off
|
|
|
|
|
|
+ lcd.print(" ");
|
|
|
|
|
|
|
|
|
lcd.setCursor(0, 1);
|