我们复制了 hackster.io 上的一个项目: https ://www.hackster.io/eursan/complete-wireless-weather-station-ece694?ref=part&ref_id=13511&offset=1
它运行良好,但每天晚上 03:26GMT +2 我们都会收到 AMQP 错误和连接松动,并且传感器停止发送数据。而且由于每次您想要重新启动它时,您都必须手动将传感器标签与 Raspberry Pi 重新连接,以便它继续发送数据。
我认为这可能是物联网中心每晚刷新其存储但不能确定时的问题。
这是我们得到的错误消息:
/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)
任何人都知道可能是什么原因?
谢谢
/乙