retain announcement

#42
This commit is contained in:
1technophile committed 2017-05-05 22:34:41 +02:00
1 parent 2b682922a4
commit d63636bf31
1 file changed
+1 -1
+1 -1
View File
@@ -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"));