Closed eczajk1 closed 7 years ago
This is my output after adding the print statement as was suggested on #25:
root@Seeed:~/AWS-IoT-Python-Runtime/runtime#
/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
/
Traceback (most recent call last):
Setup failed!
-1
I was able to get this to work after reinstalling the AWSIoTPythonSDK and re-uploading the Python runtime folder. 😖
@eczajk1 Thanks, i have the same issue as you had, and i will do what you did, and one more question: how to set the AWS_IOT_CLIENT_ID? you set it as seeed02, where is seeed02 from? Thanks again!
Hi @Victor9936084 ,
AWS_IOT_CLIENT_ID is the client side identifier you use to connect to AWS IoT. You can configure it by yourself by changing the macros in aws_iot_config.h
. Take "BasicPubSub" as an example, you can configure the your client id here:
https://github.com/aws/aws-iot-device-sdk-arduino-yun/blob/master/AWS-IoT-Arduino-Yun-Library/examples/BasicPubSub/aws_iot_config.h#L23
Hope the above helps.
Thanks, Liusu
Hi @liuszeng ,
Thanks for your kindly response, and i'd apologize for my poor english, actually i know where i can set AWS_IOT_CLIENT_ID macro, but i don't know what value should i set, in the example you give to me:
the value is "My_ClientID". and for me, how can i get(set) the client ID from my Arduino Yun board?
Thanks again! Victor
This thread helped clear it up a little for me: https://forums.aws.amazon.com/thread.jspa?threadID=219513
MQTT client IDs do not have an association with a Thing in AWS IoT. These client IDs are purely to uniquely identify the MQTT connection. One important thing to consider about MQTT client IDs is they need to be unique among devices across your AWS account. If you have a client connected as "client ID 1" and a second client connects with that same ID ("client ID 1") then first client's connection will be force disconnected. This is a feature of the MQTT spec that keeps a client with intermittent connectivity from spawning multiple MQTT sessions.
thank you @eczajk1 , after set the client ID, i still get failed:
Hi @Victor9936084 ,
The current version of AWS IoT Arduino Yun SDK is backed by AWS IoT Python SDK v1.0.0. To get it working correctly, you will need to have AWS IoT Python SDK v1.0.0 installed on your OpenWRT.
For the connect failure, Can you verify that the certificate you used is attached with a policy with proper permissions? For more details about AWS IoT Policy, you can take a look at the following link: http://docs.aws.amazon.com/iot/latest/developerguide/pub-sub-policy.html
Thanks, Liusu
I was able to get this to work after setting policy on AWS IOT(give full permission) and setting serial baud rate to 115200, thank you all.
Hello,
Finally,I have the same problem with the Dragino Yun Shield (Permission denied and Setup failed! -1).
I already tested the credentials for X.509 and permissions: it worked fine with the Arduino Yun.
Before I updated the Firmware on the Yun Shield, I got the CONNECT_SSL_ERROR -10). When I installed the AWSIoTPythonSDK 1.0.0, I regonized the following Warnings: "Insecure PlatformWarning" and "SNIMissingWarning". So i updated the Firmware to Dragino-v2 yun-4.1.2. and got no more Warnings.
Has somebody an advice?
Many thanks in advance.
Can you offer any advice on the best way to diagnose this error:
My config file is:
Seems like I have been successful running the python sdk example, as a test (as was suggested in #28):