L#143 TCP连接错误AWS IoT Raspberry Pi 3

时间:2017-07-31 09:40:28

标签: raspberry-pi amazon iot raspberry-pi3 aws-iot

当我使用AWS IoT Embedded C SDK在Raspberry Pi 3上运行时出现错误,如果有人可以提供帮助,我将不胜感激。谢谢!

信息下方。在我的aws_iot_config.h中

define AWS_IOT_MQTT_HOST            "a3osulxxxxxxxx.iot.us-east-1.amazonaws.com"
define AWS_IOT_MQTT_PORT            8883  
define AWS_IOT_MQTT_CLIENT_ID       "CsPi6" <br/>
define AWS_IOT_MY_THING_NAME        "CsPi6"  
define AWS_IOT_ROOT_CA_FILENAME     "root-CA.pem"  
define AWS_IOT_CERTIFICATE_FILENAME     "certificate.pem.crt"  
define AWS_IOT_PRIVATE_KEY_FILENAME  "private.pem.key" 
输出下方

Connecting... 
ERROR: iot_tls_connect L#143  TCP Connection error 
ERROR: main L#173 Error(-3) connecting to a3osulxxxxxxxx.iot.us-east-1.amazonaws.com:8883 
Subscribing... 
ERROR: main L#195 Error subscribing 
ERROR: main L#235 An error occurred in the loop. 

此外,我试图ping端点&#34; a3osulxxxxxxxx.iot.us-east-1.amazonaws.com&#34;通过使用Rpi,它失败了。但如果我使用Mac终端ping它就会成功。

pi@raspberrypi:~ $ ping a3osulxxxxxxxx.iot.us-east-1.amazonaws.com<br/>
ping: unknown host a3osulxxxxxxxx.iot.us-east-1.amazonaws.com<br/> 

0 个答案:

没有答案