Cumulus MX 3.28.6 b3283
I've created a custom mqtt upload file. If I add the property "retain": true to the topic the value is not published with a retained flag. I've restarted CumulusMX after the change and checked this with MQTT Explorer.
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
MQTT retain flag not applied
Moderator: mcrossley
-
Dinant
- Posts: 101
- Joined: Sat 17 Aug 2013 9:11 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 2012 R2
- Location: Markelo
- Contact:
Re: MQTT retain flag not applied
I see I've made a typo in the mqtt file instead of "retain": true I've used "retain": "true". I don't know if that causes the problem.
Second the MQTT Explorer only shows the retain flag when the client subscribes after the initial publish.
Second the MQTT Explorer only shows the retain flag when the client subscribes after the initial publish.
- mcrossley
- Posts: 14384
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: MQTT retain flag not applied
I'm not sure, I've never tested it, but the correct syntax would be "retain":true