Menu

MySQM stops sending MQTT data

2022-04-12
2022-04-13
  • Jairo Vrolijk

    Jairo Vrolijk - 2022-04-12

    Hi all,

    I have a recently build MySQM board sending data to a Raspberry Pi which is acting as the MQTT broker. The data reaches fine however after about 4 to 5 day the MySQM stops sending data to the MQTT broker but its still online and can be reached in throught my browser with the IP address.

    After a MySQM controller reboot it resumes sending data toi the MQTT broker.

    Are there any thoughts on this? Thanks in advance for any help.

    Jairo

     
  • brownrb

    brownrb - 2022-04-13

    Hi Jairo

    The firmware supports mqtt reconnect. As a library is being used, I cannot say one way or the other where the fault is. There is in firmware 127-07 a bug in the reconnect code.

    This has been fixed in the next slotted release, as well as the ability to stop and start the MQTT server, which is in beta and will go into testing this week or next, version 128-34, and will be released here once it has passed the testing stage. If you want to be added to the test team, please send me an email to either gmail or yahoo account.

    So I appreciate that this does not fix your problem immediately but the fix for the reconnect issue is in the next release, 128-34.

    Not sure that it will your issue and the fault could be in the firmware or the mqtt library we use. Time will tell. I attach the screen shot for mqtt control in the firmware 128-34, fyi

    regards
    Robert

     
  • Jairo Vrolijk

    Jairo Vrolijk - 2022-04-13

    Hi Robert,

    Thanks for the prompt response. I appreciate it.
    I would be glad to support as a tester. I found your project very interesting and printed about 5x MySQM+ circuit boards for a couple of builds. Attached you will find some pictures of where I currently have the build, and below is a link to my website, where I'm pushing the data through a Raspberry Pi MQTT broker and then to MySQL database on my webhosted server. The center graph is data directly from the MySQM+ (ESP32 and BME210). The Raspberry Pi will have Thomas Jacquin Allsky cam app installed.
    https://skynstars.com/template/indexDesktop.php

    My intention with your MySQM+ project is to install a couple of stations in remote sites where the light pollution can be recorded as it develops, e.g., national park, recreational sites, etc. That way, as an advocate for the International Darksky Association, we can better understand the developing light pollution and have better ways to tackle it. As you can imagine, having a remote station and requiring to reboot it occasionally might be a challenge, so probably some sort of "watchdog/fail-safe" system might be an idea.

    I'll send you an email as a tester.

    Best regards,

    Jairo V.
    (Aruba, Dutch Caribbean island)

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.