Re-publish discovery topics on re-connect (via cfg, disabled by default) (#1274)

Resolves https://github.com/1technophile/OpenMQTTGateway/issues/1273

Signed-off-by: Sami Salonen <ssalonen@gmail.com>

Signed-off-by: Sami Salonen <ssalonen@gmail.com>
This commit is contained in:
Sami Salonen authored and GitHub committed 2022-09-26 15:49:02 -05:00
1 parent 765ec8415b
commit e9449f567b
2 files changed
+15 -2

No files matched your search

+5
View File
@@ -113,6 +113,11 @@ void announceDeviceTrigger(bool use_gateway_info,
char* device_mac);
#define discovery_Topic "homeassistant"
// discovery_republish_on_reconnect false to publish discovery topics over MQTT only with first connect
// discovery_republish_on_reconnect true to always republish discovery topics over MQTT when connection is re-established
#ifndef discovery_republish_on_reconnect
# define discovery_republish_on_reconnect false
#endif
#define DEVICEMANUFACTURER "OMG_community"