我的 Node-RED 画布中的 MQTT 元素不会与设备保持连接。如果我添加一个 MQTT 元素,它将每 15 到 18 秒连接一次,持续大约 1 秒(有时长达 10 秒),然后断开连接。例如,这里是设备日志的摘录。
Token auth succeeded: ClientID='d:pw2bfk:temperature:tempfrontdoor', ClientIP=198.11.231.56 13 Aug 2016 7:53:03 pm
Token auth succeeded: ClientID='d:pw2bfk:temperature:tempfrontdoor', ClientIP=198.11.231.56 13 Aug 2016 7:52:47 pm
Token auth succeeded: ClientID='d:pw2bfk:temperature:tempfrontdoor', ClientIP=198.11.231.56 13 Aug 2016 7:52:41 pm
Token auth succeeded: ClientID='d:pw2bfk:temperature:tempfrontdoor', ClientIP=198.11.231.56 13 Aug 2016 7:52:36 pm
Token auth succeeded: ClientID='d:pw2bfk:temperature:tempfrontdoor', ClientIP=198.11.231.56 13 Aug 2016 7:52:21 pm
Closed connection from 198.11.231.56. The client ID was reused. 13 Aug 2016 7:52:20 pm
我确信有一个简单的问题导致了这个问题。我花了很多时间都无济于事。
这是 Node-RED 画布 -> https://motion.mybluemix.net/red/#