Closed AbdullahGaw closed 4 months ago
You should be able to configure the timeout with myAWSIoTMQTTClient.configureConnectDisconnectTimeout(10)
which you are using. So I'm not sure why you might be seeing an 18min timeout.
Can you try pinging your ats endpoint on your iot devices to make sure they can reach the IoT servers. You can do that with this:
ping <xxxxxxxxxxxxxx>-ats.iot.us-east-1.amazonaws.com
If that does work can you try using the basicPubSub sample and see if that works?
This is when i pinged it ^
this is when i ran the basicpubsub.py still the 18 minutes delay
When trying to repo this I'm always seeing the basicPubSub sample fail quickly. If I start the sample with no internet connection it fails immediately on setup with no delay. And if I disconnect the internet after a few successful publishes it will wait the 10 seconds before timing out correctly.
Is there anything special about the IoT devices (Digi Accelerated Linux Operating System) that you're using? And or the network settings that you're using?
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
The problem is every time i run the script it never establishes a connection.
Expected Behavior
I expect it to connect successfully or to see connection acknowledgment. or rejection within a minute at most.
Current Behavior
Looking at the logs i found that It takes 18 minutes before it rejects or acknowledges the connection. This has been a repeated pattern I ran the script more than 10 times and i get the same 18 minutes delay. please see the logs.
I thought the IoT device had internet problem, so i tried a different sim card but same results, I tried to run this on 4 IoT devices (of the same type and settings) still same results. however when i ran it on my laptop it works. I tried to connect using paho-mqtt library and it work on all 4 IoT devices.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
SDK version used
1.5.2
Environment details (OS name and version, etc.)
Digi Accelerated Linux Operating System