MQTT - Connect Failed [BASIC IDE - AWS IoT Core]


We are using a Basic script on our Flexy to publish data on AWS IoT Core MQTT server.
Our Flexy gets disconnected at certain point of time (sometime after few days, sometime after few weeks) without any apparent reason. There are no other devices publishing data on the MQTT server, therefore it seems unlikely to be a Client ID conflict.

To reconnect to the MQTT server, we just need to reboot the Flexy.

The logs and Basic script are as follow. The observed disconnection occurred at 13:00, corresponding logs are highlight in red.

program_export.bas (3.2 KB)

Thanks in advance for your support !

One thing I can advise is to remove the max call duration. In comcfg.txt, set MaxCallDur = 0. This will stop the modem from disconnecting and reconnecting every 60 mins.

As far as the reconnection issue, that may be due to this:

Thank you Kyle, I will implement your suggestion and revert once I get to see the results.

You’re welcome. Please let me know the results either way.

Thank you!

Hi Kyle, thank you very much for your support. We did no observe further disruption for the last 2-weeks.

Cheers !

1 Like

Great - Thanks for the update!