You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I guess the retain flag is not working (have to use write API) - which is not supported by a lot of clients (NodeRed, PubSub).
Workaround is "Rule" in your backend and forward a publish via write to other topic (but requires new topic to avoid loop).
Any ideas, input, feedback?
Thanks,
Chris
PS: For others, if you really need persistent topics with libraries only supporting publish you might have to use the workaround to set up a rule which takes TOPIC_A publish and WRITES it to TOPIC_A_Persistant
The text was updated successfully, but these errors were encountered:
Addition: In the samples (e.g. here https://github.com/beebotte/bbt_arduino_examples/blob/master/examples/TempHumidReporting.ino) around line 60 it looks like its possible to get the desired behaviour by using more complex JSON format - I will try that, if that works would be a workaround - though a lot of code to e.g. send a simple short string like "Status" with retain=1 would be much nicer :-)
I am not sure if I am doing something wrong, but could it be that your persistance is not supported by PubSubClient.
See my thread here: Imroy/pubsubclient#96
I guess the retain flag is not working (have to use write API) - which is not supported by a lot of clients (NodeRed, PubSub).
Workaround is "Rule" in your backend and forward a publish via write to other topic (but requires new topic to avoid loop).
Any ideas, input, feedback?
Thanks,
Chris
PS: For others, if you really need persistent topics with libraries only supporting publish you might have to use the workaround to set up a rule which takes TOPIC_A publish and WRITES it to TOPIC_A_Persistant
The text was updated successfully, but these errors were encountered: