mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 08:19:52 +03:00
mqtt payload string fix for thermostat
This commit is contained in:
@@ -1242,9 +1242,9 @@ void MQTTCallback(unsigned int type, const char * topic, const char * message) {
|
||||
|
||||
// wwActivated
|
||||
if (strcmp(topic, TOPIC_BOILER_WWACTIVATED) == 0) {
|
||||
if (message[0] == '1' || message[0] == 'on') {
|
||||
if (message[0] == '1' || strcmp(message, "on") == 0) {
|
||||
ems_setWarmWaterActivated(true);
|
||||
} else if (message[0] == '0' || message[0] == 'off') {
|
||||
} else if (message[0] == '0' || strcmp(message, "off") == 0) {
|
||||
ems_setWarmWaterActivated(false);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user