Closed skrixx closed 6 years ago
Hi @skrixx ,
Thank you very much for using AWS IoT Arduino Yun SDK.
It seems that the Python runtime failed in connecting to AWS IoT at TCP connection level. You can try the following:
Double check your AWS IoT endpoint. It should have the following format:
<CUSTOMER_SPECIFIC_PREFIX>.iot.<REGION>.amazonaws.com
If you are using X.509 certificate auth., you should use port 8883. If you are using MQTT over WebSocket, you should use port 443.
On your AR9331 (where OpenWRT lives), try a simple telnet command to the service hostname and port:
host$> telnet <prefix>.iot.<region>.amazonaws.com 8883
Trying 54.236.141.103...
Connected to <endpoint>.
Escape character is '^]'.
Connection closed by foreign host. host$>
The above shows a successful TCP connection, with the connection eventually being closed due to failed authentication. This would indicate connections on port 8883 are not being blocked. Below shows the same command when attempting on a blocked port:
host$> telnet
Check your DNS configuration or try connecting from a different network.
Thanks,
Liusu
Changing port between 443 and 8883 make no difference and the endpoint is correct. Then I tryed a simple telnet command an got this:
root@Arduino:~# telnet
.iot.eu-central-1.amazonaws.com 8883 telnet: can't connect to remote host (35.157.199.74): Connection timed out
Is this a network problem?
Kind regards
Hi @skrixx ,
Thanks for providing the information.
A failure in telnet
command means that a TCP connection to your AWS IoT endpoint cannot be established from your board. To verify if it is a network specific issue, you can try the same command on another device/computer that is connected to the same network Yun is on. If you are still experiencing this issue, you may want to try again with a different network.
Thanks, Liusu
Hi @skrixx, We haven't heard from you in over two months and hence we are closing this issue. If you have any questions about the Arduino SDK, please feel free to open another issue. Thanks! Varun
Hello, I want to use Amazon AWS IoT with my Arduino Yun, but it failed still after 4 Days working. I got some fails and follows instruktions from #28 and #25 but no success. fresh openWRT is installed.
First I got this:
Then I installed the python SDK and let basicPubSub sample running and got this:
What doese this meen? And if now the Arduino SDK is running I got a different failure:
I really dont know what can I do more, can somebody help me? Maybee @liuszeng ?
Thanks Skrixx