I deployed a flow to my node-red on the raspberry pi 3 and after that it keep restarting giving the following error:
22 Jun 17:26:21 - TypeError: client.subscribeToDeviceCommand is not a function
at Object.callback (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/application/wiotp.js:208:24)
at DeviceClient.<anonymous> (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/application/wiotp.js:51:42)
at emitNone (events.js:86:13)
at DeviceClient.emit (events.js:185:7)
at MqttClient.<anonymous> (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/ibmiotf/dist/clients/DeviceClient.js:109:19)
at emitOne (events.js:101:20)
at MqttClient.emit (events.js:188:7)
at MqttClient._handleConnack (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/mqtt/lib/client.js:790:10)
at MqttClient._handlePacket (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/mqtt/lib/client.js:306:12)
at process (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/mqtt/lib/client.js:248:12)
at Writable.writable._write (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/mqtt/lib/client.js:258:5)
at doWrite (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/readable-stream/lib/_stream_writable.js:401:64)
at writeOrBuffer (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/readable-stream/lib/_stream_writable.js:390:5)
at Writable.write (/usr/lib/node_modules/node-red-contrib-ibm-watson-iot/node_modules/readable-stream/lib/_stream_writable.js:317:11)
at TLSSocket.ondata (_stream_readable.js:555:20)
at emitOne (events.js:96:13)
nodered.service: main process exited, code=exited, status=1/FAILURE
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
and then keep restarting. How should I fix this?