技术文章 - CS318801

错误“无法连接到 [xxx] 中的 MQTT:等待服务器响应超时”影响 ThingWorx Platform 中未显示连接的事物中的 MQTT/MQTTConnection

已修改: 01-Nov-2024   


注意:本文已使用机器翻译软件翻译,以方便非英语客户阅读。但翻译内容可能包含语法错误或不准确之处。请注意, PTC对本文所含信息的翻译准确性及使用后果不承担任何责任。请在 此处 查看本文的英文原始版本以便参考。有关机器翻译的更多详情,请单击 此处
感谢您告诉我们。我们将尽快审阅此译文。

适用于

  • ThingWorx Platform 8.5 to 9.4

说明

  • Things 中的MQTT / MQTTConnection模板未显示为已连接
  • MQTT 扩展 v2.1.0 不适用于 ThingWorx 9.x
    • ThingWorx 8.4.x 不会出现此问题
  • MQTTMQTTConnection模板的属性isConnectedlastConnection永远不会更新
  • 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