Skip to content

Commit

Permalink
remove mqtt_retained declaration, conflict with virtualbool
Browse files Browse the repository at this point in the history
missing yield() after some mqtt subscription
  • Loading branch information
KipK committed Oct 15, 2022
1 parent 15f74d8 commit 4cbb625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/app_config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});

Expand Down

0 comments on commit 4cbb625

Please sign in to comment.