From 0c98a1c16bd2533a005488cbcaaa31127d0c17af Mon Sep 17 00:00:00 2001 From: Deb Date: Mon, 12 Feb 2018 16:33:08 -0500 Subject: [PATCH] Subscribe to HA MQTT topic Subscribe to HA MQTT topic --- Arduino/McLighting/request_handlers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Arduino/McLighting/request_handlers.h b/Arduino/McLighting/request_handlers.h index 26b5b00..aa1ffa7 100644 --- a/Arduino/McLighting/request_handlers.h +++ b/Arduino/McLighting/request_handlers.h @@ -732,6 +732,7 @@ void mqtt_reconnect() { mqtt_client.publish(mqtt_outtopic, message); // ... and resubscribe mqtt_client.subscribe(mqtt_intopic); + mqtt_client.subscribe(String(mqtt_ha + "#").c_str()); DBG_OUTPUT_PORT.printf("MQTT topic in: %s\n", mqtt_intopic); DBG_OUTPUT_PORT.printf("MQTT topic out: %s\n", mqtt_outtopic);