From 4cbb6259b9dfe3391e215f987efc3e07bc4d1163 Mon Sep 17 00:00:00 2001 From: KipK Date: Sat, 15 Oct 2022 21:30:12 +0200 Subject: [PATCH] remove mqtt_retained declaration, conflict with virtualbool missing yield() after some mqtt subscription --- src/app_config.cpp | 1 - src/mqtt.cpp | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app_config.cpp b/src/app_config.cpp index 91aed1ab..2461feff 100644 --- a/src/app_config.cpp +++ b/src/app_config.cpp @@ -45,7 +45,6 @@ String emoncms_fingerprint; String mqtt_server; uint32_t mqtt_port; String mqtt_topic; -bool mqtt_retained; String mqtt_user; String mqtt_pass; String mqtt_solar; diff --git a/src/mqtt.cpp b/src/mqtt.cpp index 8052bade..40b7ecce 100644 --- a/src/mqtt.cpp +++ b/src/mqtt.cpp @@ -330,9 +330,11 @@ mqtt_connect() mqtt_sub_topic = mqtt_topic + "/schedule/set"; mqttclient.subscribe(mqtt_sub_topic); + yield(); + mqtt_sub_topic = mqtt_topic + "/schedule/clear"; mqttclient.subscribe(mqtt_sub_topic); - + yield(); connecting = false; });