aws / aws-iot-device-sdk-arduino-yun

SDK for connecting to AWS IoT from an Arduino Yún.
Apache License 2.0
163 stars 77 forks source link

Disconnected from AWS if the shadow update exceeds 10 seconds #66

Closed LabGrunt closed 6 years ago

LabGrunt commented 6 years ago

I've been playing around with the ThermostatSimulatorDevice.

I noticed that when I increased the delay value in the loop function above 10 seconds, the Yun was disconnected. I wanted to increase the interval between the shadow updates to a longer time or do shadow update when a button is pressed.

I also noticed that after the connection is successful, the first shadow update must happen within 13 seconds.

Is there any way to change the time interval?

I tried changing two things:

  1. Set myClient.connect(new_interval), where new_interval = 60 or 120.
  2. Change CMD_TIME_OUT in aws_iot_config_SDK.h

But those two changes did not have any effects on the disconnection timing.

Thanks.

gordonwang0 commented 6 years ago

Hi @LabGrunt,

Please take a look at #49. I think this is the same problem.

gordonwang0 commented 6 years ago

Hi @LabGrunt,

Let me know if you need any more help on this. Closing issue.