kisoft Well-Known Member Licensed User Longtime User Jan 17, 2019 #1 Hi I implemented this solution on the VPS server. MQTT Mosquitto broker. I have created a simple application that controls the relay. (Arduino sketch, ESP 8266). https://www.b4x.com/android/forum/threads/b4x-mqtt-connect-reconnect.80815/#content I noticed a small problem, when I turn off the application completely and turn it on again it does not show me the status of the relay. I do not know if it should work this way or do I have to configure something on Mosquitto.
Hi I implemented this solution on the VPS server. MQTT Mosquitto broker. I have created a simple application that controls the relay. (Arduino sketch, ESP 8266). https://www.b4x.com/android/forum/threads/b4x-mqtt-connect-reconnect.80815/#content I noticed a small problem, when I turn off the application completely and turn it on again it does not show me the status of the relay. I do not know if it should work this way or do I have to configure something on Mosquitto.
Erel B4X founder Staff member Licensed User Longtime User Jan 18, 2019 #2 kisoft said: when I turn off the application completely Click to expand... Which app? There isn't enough information here to answer... Upvote 0
kisoft said: when I turn off the application completely Click to expand... Which app? There isn't enough information here to answer...
kisoft Well-Known Member Licensed User Longtime User Jan 18, 2019 #3 HI It's about the application on ANDROID. Upvote 0
woniol Active Member Licensed User Longtime User Jan 18, 2019 #4 Hi, I think you need to read about retained flag in MQTT https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/ Upvote 0
Hi, I think you need to read about retained flag in MQTT https://www.hivemq.com/blog/mqtt-essentials-part-8-retained-messages/
kisoft Well-Known Member Licensed User Longtime User Jan 18, 2019 #5 Thank you for the answer, of course I saw it, an excellent guide. Upvote 0
kisoft Well-Known Member Licensed User Longtime User Jan 18, 2019 #6 Setting this flag has helped. It's working fine now Upvote 0