publish discovery once at each MQTT connection with retain flag set true (#507)

* publish discovery once at each MQTT connection with retain flag set to true

#448
This commit is contained in:
Florian authored and GitHub committed 2019-12-14 19:17:09 +01:00
1 parent 3948a14db9
commit ae33ea7458
3 files changed
+18 -23

No files matched your search

+1 -1
View File
@@ -1173,7 +1173,7 @@ void haRoomPresence(JsonObject &HomePresence)
trc(F("BLE DISTANCE :"));
trc(distance);
String topic = String(Base_Topic) + "home_presence/" + String(gateway_name);
pub_custom_topic((char *)topic.c_str(), HomePresence);
pub_custom_topic((char *)topic.c_str(), HomePresence, false);
}
#endif