Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shadow connect fail #13

Closed
cliffgibson opened this issue Feb 29, 2016 · 2 comments
Closed

Shadow connect fail #13

cliffgibson opened this issue Feb 29, 2016 · 2 comments

Comments

@cliffgibson
Copy link

i just upgrade from sdk1.0.1 to 1.1.0 on my embedded linux device. when i run the shadow sample app, i always got error in aws_iot_shadow_connect(), error code=-3. same behavior for mbedtls and openssl. i put a retry loop there and sometimes it 'may' successfully connect after 10-20 trials, sometimes not. can you help pls? thanks

@bhadrip
Copy link
Contributor

bhadrip commented Mar 1, 2016

Hello @cliffgibson ,

Thanks for updating the SDK. Did you have this connectivity issue with 1.0.1 ?

In some devices, we have observed that increasing the timeout for receiving CONNACK from server has fixed this variability issue.
This could be changed in this place. Increase it to 5 seconds,

ConnectParams.mqttCommandTimeout_ms = 5000;

Let us know if this helps.

Bhadri

@chaurah
Copy link
Contributor

chaurah commented May 9, 2016

Hi @cliffgibson,
We have released a fix for the issue raised by dfszb above, in the v2.0.0 of the SDK. Please download and use the latest version of the SDK and let us know if you are still facing connection issues.

Rahul

@chaurah chaurah closed this as completed May 9, 2016
aggarw13 added a commit to aggarw13/aws-iot-device-sdk-embedded-C that referenced this issue Nov 29, 2019
Some documentation update for Foundry's Register Thing API.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants