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:
1 parent
3948a14db9
commit
ae33ea7458
3 files changed
+18
-23
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user