Skip to content

Commit

Permalink
Merge pull request #445 from KipK/master
Browse files Browse the repository at this point in the history
remove mqtt_retained declaration, conflict with virtualbool
  • Loading branch information
jeremypoulter authored Oct 16, 2022
2 parents cd3d141 + 4cbb625 commit 3e157db
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 @@ -51,7 +51,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 3e157db

Please sign in to comment.