Watson IOT Out node on Raspberry Pi repeatedly disconnecting

瘦欲@ 提交于 2019-12-24 18:33:31

问题


I am using a Watson IOT Output (wiotp out) in a Node-RED flow on my Raspberry PI and am having issues with the connection repeatedly disconnecting and then re-connecting.

Here is a screenshot of my Credentials Node and one of my IOT Out Node.

The connection is configured so that I can send messages to the cloud and successfully have them trigger a flow in my cloud Node-RED instance.

The problem I'm having is that when I attempt to send a string array as my payload, very items in the array actually make it through before the service disconnects. I am limited to around 3-5 strings at a time, which is frustrating because I am losing 195-197 of the 200 items I am trying to send to the IOT platform.

How can I keep a persistent connection and make sure my entire payload makes it through to the IOT service?


回答1:


If you're seeing very frequent disconnects, it can often mean that you're inadvertently performing clientId stealing (i.e., two MQTT clients are fighting over the same clientId). You can confirm this by looking at the device connection logs in the device drilldown panel: you'll see evidence of log messages such as "The client ID was reused."

Ben



来源:https://stackoverflow.com/questions/50427550/watson-iot-out-node-on-raspberry-pi-repeatedly-disconnecting

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!