来自Azure IoT Hub的CC2650STK Raspberry Pi AMQP连接丢失

时间:2016-04-22 06:39:51

标签: azure raspberry-pi texas-instruments raspberry-pi3 azure-iot-hub

我们已经复制了一个hackster.io上的项目: https://www.hackster.io/eursan/complete-wireless-weather-station-ece694?ref=part&ref_id=13511&offset=1

它运行良好,但每晚03:26GMT +2我们收到AMQP错误和连接松动,传感器停止发送数据。因为每次你想重新启动它,你必须手动重新连接sensortag与Raspberry Pi,以便继续发送数据。

我认为这可能是IoT集线器在每晚刷新存储时的问题,但无法确定。

这是我们收到的错误信息:

/home/pi/node_modules/azure-iot-device-amqp/node_modules/azure-iot-amqp-base/lib/amqp_common_errors.js:55
error.amqpError = amqpError;
^

TypeError: Cannot set property 'amqpError' of undefined
at translateError (/home/pi/node_modules/azure-iot-device-amqp/node_modules/azure-iot-amqp-base/lib/amqp_common_errors.js:55:19)
at translateError (/home/pi/node_modules/azure-iot-device-amqp/lib/amqp_device_errors.js:20:13)
at /home/pi/node_modules/azure-iot-device-amqp/lib/amqp.js:52:12
at Amqp.send (/home/pi/node_modules/azure-iot-device-amqp/node_modules/azure-iot-amqp-base/lib/amqp.js:167:25)
at Amqp.sendEvent (/home/pi/node_modules/azure-iot-device-amqp/lib/amqp.js:95:14)
at Client.sendEvent (/home/pi/node_modules/azure-iot-device/lib/client.js:256:19)
at /home/pi/weather/meteo.js:103:32
at /home/pi/node_modules/async/dist/async.js:3484:13
at /home/pi/node_modules/async/dist/async.js:365:16
at replenish (/home/pi/node_modules/async/dist/async.js:831:29)
at /home/pi/node_modules/async/dist/async.js:842:29
at /home/pi/node_modules/async/dist/async.js:804:16
at /home/pi/node_modules/async/dist/async.js:3481:17
at /home/pi/node_modules/async/dist/async.js:307:31
at /home/pi/weather/meteo.js:94:33
at null.<anonymous> (/home/pi/node_modules/sensortag/lib/cc2650.js:303:7)

任何人都知道原因可能是什么?

THX

/ B

0 个答案:

没有答案