在Node.js上将文本发送到AWS Iotcore

时间:2019-05-07 13:49:46

标签: javascript node.js amazon-web-services iot

我一直在努力解决此问题,无法找到答案...我试图将文本/数据发送到AWS iotcore控制台。但是当我运行“ node app.js”时,出现以下错误:

Error: connect ETIMEDOUT 34.236.26.41:8883
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)
Emitted 'error' event at:
    at MqttClient.<anonymous> (C:\Users\user\Desktop\aws\node_modules\aws-iot-device-sdk\device\index.js:808:12)
    at MqttClient.emit (events.js:189:13)
    at TLSSocket.handleTLSerrors (C:\Users\user\Desktop\aws\node_modules\aws-iot-device-sdk\device\lib\tls.js:29:18)
    at TLSSocket.emit (events.js:194:15)
    at emitErrorNT (internal/streams/destroy.js:82:8)
    at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
    at process._tickCallback (internal/process/next_tick.js:63:19)

如果您对此有任何想法,请告诉我,我该怎么办...干杯!

0 个答案:

没有答案