This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT - preventing timeout
Has anyone implemented a keep-alive or pingreq type setup in node red under OpenPlotter?
I have run into a situation where I believe my mqtt based data stream breaks because data doesn't change for a long time. I have not dug into the matter yet so the cause is a guess on my part. What happens is that depth and wind speed data only gets received by my Node Red setup when the chart plotter is on but of course it gets turned off when the boat is put to sleep at the marina. My mqtt system reports 'ND' as in no data and that might not change in several days. I believe the system ends up timing out and when data becomes available it is no longer reported to the mqtt broker (or the broker no longer accepts it). Data will then no longer update on the display that is fed by the mqtt broker unless I reset the system somehow.
I would like things to automatically 'work' again when data was unavailable or hasn't changed in a long time and then starts to become available again.

Forum Jump:

Users browsing this thread: 1 Guest(s)