publish version when online and subjects constitution improvment

This commit is contained in:
1technophile committed 2017-12-02 11:23:43 +01:00
1 parent 0844cbefa9
commit 66182ac1be
2 files changed
+6 -3

No files matched your search

+2
View File
@@ -92,6 +92,8 @@ boolean reconnect() {
trc(F("Connected to broker"));
// Once connected, publish an announcement...
client.publish(will_Topic,Gateway_AnnouncementMsg,will_Retain);
// publish version
client.publish(version_Topic,VERSION,will_Retain);
//Subscribing to topic
if (client.subscribe(subjectMQTTtoX)) {
#ifdef ZgatewayRF