Received error code -1
gideonmugo opened this issue · 4 comments

i followed the tutorial and sketches in this link https://www.hackster.io/ben-eagan/alexa-controlled-leds-through-arduino-yun-ac1171, and i got this error [ERR] command: setup...code:-1 given by arduino yun when trying to communicate with the thing/lamdba. How can i solve this problem?
Thank you for trying the AWS IoT Yun samples.
This looks like the setup routine is returning "General Error" since it is receiving garbage over the serial connection. (https://github.com/aws/aws-iot-device-sdk-arduino-yun/blob/master/AWS-IoT-Arduino-Yun-Library/aws_iot_mqtt.cpp#L85) This is usually caused by your yun not being set up correctly.
Please take a look at the following issues as other users were having similar issues:
#25
#28
#63
Hi @gideonmugo ,
I saw you already have AWS-IoT-Python-Runtime under root directory. What is the problem you are having with Arduino SDK?
Hi fengsongAWS,
The arduino SDK had some issues, but i have handled that and now the program is running well.
Thanks everyone for your help.
