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

BasicBubSub failing with code -1 #60

Closed ghost closed 6 years ago

ghost commented 6 years ago

Dear liuszeng,

I have installen AWS ioT SDK Version 2.2.0 on Arduino Yun as per instructions without any errors during the installation. I successfully uploaded example BasicPubSub, and it can successfully register, and then subscribe to "topic1" - no errors. After, it publishes the first message, it results in error -41, and the next message in error -1, as per below:

_AWS IoT SDK Version(dev) 2.2.0-

Publish failed! -41 loop 0 done Publish failed! -1 loop 1 done Publish failed! -1 loop 2 done_

After that didn't work, I successfully upgraded AWSIoTPythonSDK to the latest version 1.2.0:

# pip install AWSIoTPythonSDK==1.2.0

I have uploaded BasicPubSub sketch again, and this time it couldn't even pass the setup:

_AWS IoT SDK Version(dev) 2.2.0-

Setup failed! -1_

Could you please provide some guidance on how to solve this?

Regards, Dennis

ghost commented 6 years ago

Explanation for issue #58 has solved non-working sketch problem.