From d63636bf31b55babb64af6a90ee0502276d74e64 Mon Sep 17 00:00:00 2001 From: 1technophile Date: Fri, 5 May 2017 22:34:41 +0200 Subject: [PATCH] retain announcement #42 --- OpenMQTTGateway.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenMQTTGateway.ino b/OpenMQTTGateway.ino index 0a66137..b199d6c 100644 --- a/OpenMQTTGateway.ino +++ b/OpenMQTTGateway.ino @@ -76,7 +76,7 @@ boolean reconnect() { #endif trc(F("connected to MQTT broker")); // Once connected, publish an announcement... - client.publish(will_Topic,Gateway_AnnouncementMsg); + client.publish(will_Topic,Gateway_AnnouncementMsg,will_Retain); //Subscribing to topic if (client.subscribe(subjectMQTTtoX) && client.subscribe(subjectMultiGTWRF)&& client.subscribe(subjectMultiGTWIR)) { trc(F("subscription OK to the subjects defined"));