Hi I am using BG-95M1 and using the MQTT API. Whenever I run the MQTT thread handler function it stays connected for several minutes and then disconnects. It return a value of -7 which means it was unsuccessful to disconnect. I am using the example code from the SDK.
This is the output I am getting when it tries to disconnect.
Disconnecting... MQTT Disconnect Failed, Error type -7
- Why does it disconnects automatically?
- If it disconnects, why is it unsuccessful?