Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lost connection to MQTT bruker, reconnect automatically.
#15
(05-28-2024, 10:55 AM)SveinHa Wrote: Hi again.

Very satisfied with Virtuino runing on both Linux Mint and Android but this minor culprit still exists... Loosing connection/updating every now and then. It it far better than when this thread started but still not quite ok.

I have a variable that is updating AT LEAST every minute. Is it possible to create a script that disconnect/reconnect MQTT if this variable is not updated after f.ex. 5 minutes? If so, how?

I think you can do it without javascript.
You need two "Timers" for this and three "If Then" scripts.
You can disconnect but you have to find another way to connect to the broker again.
This is a video example: https://virtuino.com/downloads/videos/mq...onnect.mov
Reply


Messages In This Thread
RE: Lost connection to MQTT bruker, reconnect automatically. - by iliaslamprou - 05-31-2024, 11:11 PM

Forum Jump:


Users browsing this thread: 8 Guest(s)