2021/09/10
Raspberry Pi2にて温度、湿度を取得するプログラムをうごかしていると、node.jsのプログラムが途中で止まる。以下エラー。
NotConnectedError: mqtt.js returned client disconnecting error
at translateError (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/lib/mqtt-translate-error.js:25:11)
at MqttTwinReceiver._handleError (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/lib/mqtt-twin-receiver.js:201:42)
at /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/lib/mqtt-twin-receiver.js:64:18
at MqttClient._checkDisconnecting (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/node_modules/mqtt/lib/client.js:314:7)
at MqttClient.subscribe (/home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/node_modules/mqtt/lib/client.js:423:12)
at /home/pi/iot-hub-node-raspberrypi-client-app/node_modules/azure-iot-device-mqtt/lib/mqtt-twin-receiver.js:62:22
at nextTickCallbackWith0Args (node.js:489:9)
at process._tickCallback (node.js:418:13)
pythonのプログラムはエラーが出ないのでこちらでやってみることにする