Skip to content

Commit

Permalink
feat: clearDiscoveredDevices on mqtt connect
Browse files Browse the repository at this point in the history
  • Loading branch information
sondresjolyst committed Dec 18, 2024
1 parent 82a56c5 commit 21998a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/liz
Submodule liz updated from 4af9d5 to 1d4328
2 changes: 2 additions & 0 deletions src/MQTTHelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ void connectToMQTT()
Serial.println("");
Serial.println("MQTT connected");

liz::clearDiscoveredDevices();

if (strcmp(LIZ_TYPE, "sensor") == 0)
{
sendMQTTTemperatureDiscoveryMsg(MQTT_STATETOPIC, MQTT_HOSTNAME);
Expand Down

0 comments on commit 21998a3

Please sign in to comment.