技术文章 - CS318801
错误“无法连接到 [xxx] 中的 MQTT:等待服务器响应超时”影响 ThingWorx Platform 中未显示连接的事物中的 MQTT/MQTTConnection
已修改: 01-Nov-2024
适用于
- ThingWorx Platform 8.5 to 9.4
说明
- Things 中的MQTT / MQTTConnection模板未显示为已连接
- MQTT 扩展 v2.1.0 不适用于 ThingWorx 9.x
- ThingWorx 8.4.x 不会出现此问题
- MQTT或MQTTConnection模板的属性isConnected和lastConnection永远不会更新
- ThingWorx <ThingworxStorage>\logs\ApplicationLog.log中的错误:
- 使用MQTT模板事物(xxx 是MQTT模板事物的名称
[L: WARN] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//xxx] Lost MQTT Connection For [xxx] : Exception Was Connection lost [L: WARN] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//xxx] Lost MQTT Connection For [xxx] : Cause Was null [L: ERROR] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: Thread-53] Unable to connect to MQTT in [xxx] : Timed out waiting for a response from the server [L: ERROR] [O: c.t.t.m.MQTTThing] [I: ] [U: ] [S: ] [P: ] [T: Thread-53] Unable to close client in MQTT Thing <xxx> : Connect already in progress
- 使用MQTTConnection Template 事物(xxx 是MQTTConnection Template 事物的名称
[L: WARN] [O: c.t.t.m.MQTTConnectionThing] [I: ] [U: ] [S: ] [P: ] [T: MQTT Rec: /Thingworx//xxx] Lost MQTT Connection For [xxx] : Cause Was Connection lost
- MQTT 服务器不断连接和断开连接
这是文章 318801 的 PDF 版本,可能已过期。最新版本 CS318801