MQTT Disconnect/Connect frequently

Hello,

I am using Moxa gateways as a host of my Node-red program that is connected and communicating with smart sensors via MQTT Protocol but I have noticed that my gateways keep connecting and disconnecting every 20 minutes or so which is causing some gaps in the data.

See screenshot below:

If anyone has experience anything similar or have an idea of what is causing it, please let me know.

Thank you!

Hi @CHAIMAA_DRIOUECH,

There are a few reasons why this might happen. Would you be able to tell me the rate at which your MQTT sensors are reporting?

Thank you,
Heath

Hi, They are reporting every minute to Losant.

Thanks so much for that information. Looks like you aren’t running into a rate limit issue.

Is there anything in your device log that would indicate why the connection is closing? I would also take a look at your gateway’s connection log to see if there is any more information there.

Thank you,
Heath