MQTT Gateway retained flag
-
I succeed to add the retained flag for the MQTT Gateway.
To access this flag, I have inserted few modification into the file MyGatewayTransportMQTTClient.cpp
The whole code and instructions for use are here: https://github.com/Mihai258/MySensors_MQTT_retained/tree/master
-
Good!
Maybe you can clean it up and create a proper pull request?
A few PR notes:
- The define should probably follow the the rest of the sketch configs by prefixing it with MY_
- Adding it to /keywords.txt (gives highlighting it in the Arduino IDE)
-
I did not work too much with github and still find it somehow a little bit annoying for me, but I was trying to do this.
I also have updated the new inserted constant as you advice.The new definition should be moved to the MyConfig.h , but now it was easier to modify only one file.
My tests were done on MQTT Gateway made by Arduino Uno (clone) + Ethernet shield 5100 and it works very nice.
3 out of 3
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Home Assistant/MySensors quirks
Development • 12 days ago • OldSurferDude 12 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
LAN8720A - will mysensors work with this module
Development • 13 Nov 2024, 17:06 • Marcin 15 Nov 2024, 10:59 -
Sending offset to node
Development • 31 Jan 2025, 00:59 • bsl88k 4 Feb 2025, 12:14 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23