Closed LabGrunt closed 7 years ago
Hi @LabGrunt ,
Thank you very much for your interest in AWS IoT Arduino Yun SDK.
Yun SDK does depend on a specific version (v1.0.0) of the IoT Python SDK for its Python runtime that does the heavy lifting for MQTT communication. When you are installing the Python SDK on OpenWRT, you need to specify the version. More details can be found in the following documentation: https://github.com/aws/aws-iot-device-sdk-arduino-yun#installation-on-windows
For setup error code -1, to get more debugging information, you can add an extra line to print out rw_buf
to the serial monitor to check what error message is coming from OpenWRT. More details can be found in the following post:
https://github.com/aws/aws-iot-device-sdk-arduino-yun/issues/25
Can you try switch back to IoT Python SDK v1.0.0 on OpenWRT and attach the log output when experiencing the issue?
Thanks, Liusu
I have installed Python SDK v1.0.0. and added the Serial.println.
The serial monitor output
AWS IoT SDK Version(dev) 2.2.0-
root@Arduino:/#
/bin/ash: 1: not found
/bin/ash: /root: Permission denied
/bin/ash: 1: not found
/bin/ash: /root: Permission denied
/bin/ash: 1: not found
/bin/ash: /root: Permission denied
/bin/ash: 1: not found
/bin/ash: /root: Permission denied
Linux
root@Arduino:~/AWS-IoTme#
Traceback (most recent call last):
Setup failed!
-1
The log does not look informative to me.
I have decided to start over and afterwards, it worked.
My steps were
I have setup my Arduino Yun as instructed in the Readme file in https://github.com/aws/aws-iot-device-sdk-arduino-yun.
Caveat:
I am using Win 7 64-bit. I could upload the blink example to the Yun for sanity check.
I could get Yun to commuicate with AWS IoT through the python examples. But it did not work with the Arduino code. The serial monitor returned a setup error -1. There are probably some steps or configurations that I have missed or incorrectly done but I could not find what they were.
My initial setup with AWS IoT was to follow the instructions in Connect from the IoT menu. My steps were
Next, in the Arduino code, I opened the ThermostatSimulatorDevice example and modified aws_iot_config.h.
I even modified
AWS_IOT_PATH_PREFIX
from"../certs/"
to"/root/AWS-IoT-Python-Runtime/certs/"
but still got the same error.Thank you in advance for reading my issue and helping me.