环境
- EMQX 版本:5.1.3
- 操作系统版本:docker
重现此问题的步骤
- 连接了大疆无人机机场,使用的是websocket方式进行连接
2.mqtt服务端,心跳时间设置10s
实际行为
机场客户端连接一会出现了
websocket_terminated, reason: {shutdown,discarded}
日志为下附件:
机场处理.zip (21.0 KB)
2023-08-03T06:35:51+00:00 [WS-MQTT] 4TADKCF001000V-WS-1691044537730@36.113.217.8:1202 msg: mqtt_packet_sent, packet: PUBACK(Q0, R0, D0, PacketId=116, ReasonCode=16)
2023-08-03T06:35:51+00:00 [WS-MQTT] 4TADKCF001000V-WS-1691044537730@36.113.217.8:1202 msg: mqtt_packet_received, packet: PUBLISH(Q1, R0, D0, Topic=thing/product/4TADKCF001000V/drc/up, PacketId=117, Payload={"data": {"attitude_head": -1, "gimbal_pitch": 0, "gimbal_roll": 0, "gimbal_yaw": 0.0859955153363261, "height": 489.85415649414062, "latitude": 34.331508338554976, "longitude": 108.99491598808009, "speed_x": 0, "speed_y": 0, "speed_z": 0}, "method": "osd_info_push", "timestamp": 1691044530790})
2023-08-03T06:35:51+00:00 [PUBLISH] 4TADKCF001000V-WS-1691044537730@36.113.217.8:1202 msg: publish_to, topic: thing/product/4TADKCF001000V/drc/up, payload: {"data": {"attitude_head": -1, "gimbal_pitch": 0, "gimbal_roll": 0, "gimbal_yaw": 0.0859955153363261, "height": 489.85415649414062, "latitude": 34.331508338554976, "longitude": 108.99491598808009, "speed_x": 0, "speed_y": 0, "speed_z": 0}, "method": "osd_info_push", "timestamp": 1691044530790}
2023-08-03T06:35:51+00:00 [WS-MQTT] 4TADKCF001000V-WS-1691044537730@36.113.217.8:1202 msg: mqtt_packet_sent, packet: PUBACK(Q0, R0, D0, PacketId=117, ReasonCode=16)
2023-08-03T06:35:51+00:00 [SOCKET] 4TADKCF001000V-WS-1691044537730@36.113.217.8:1202 msg: websocket_terminated, reason: {shutdown,discarded}
2023-08-03T06:35:52+00:00 [MQTT] 4TADKCF001000V-WS-1691044537730@36.113.217.8:3317 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=4TADKCF001000V-WS-1691044537730, ProtoName=MQIsdp, ProtoVsn=3, CleanStart=true, KeepAlive=10, Username=4TADKCF001000V, Password=******)
2023-08-03T06:35:52+00:00 [AUTHN] 4TADKCF001000V-WS-1691044537730@36.113.217.8:3317 msg: authenticator_result, authenticator: jwt, result: {ok,#{acl => #{expire => 1691048140,rules => #{<<"all">> => [<<"thing/product/4TADKCF001000V/drc/down">>,<<"thing/product/4TADKCF001000V/drc/up">>],<<"pub">> => [<<"thing/product/4TADKCF001000V/drc/up">>],<<"sub">> => [<<"thing/product/4TADKCF001000V/drc/down">>]}},is_superuser => false}}
2023-08-03T06:35:52+00:00 [AUTHN] 4TADKCF001000V-WS-1691044537730@36.113.217.8:3317 msg: authentication_result, reason: chain_result, result: {stop,{ok,#{acl => #{expire => 1691048140,rules => #{<<"all">> => [<<"thing/product/4TADKCF001000V/drc/down">>,<<"thing/product/4TADKCF001000V/drc/up">>],<<"pub">> => [<<"thing/product/4TADKCF001000V/drc/up">>],<<"sub">> => [<<"thing/product/4TADKCF001000V/drc/down">>]}},is_superuser => false}}}
2023-08-03T06:35:52+00:00 [WS-MQTT] 4TADKCF001000V-WS-1691044537730@36.113.217.8:3317 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2023-08-03T06:36:02+00:00 [SOCKET] 4TADKCF001000V-WS-1691044537730@36.113.217.8:3317 msg: websocket_terminated, reason: {shutdown,discarded}
请问下是哪里的问题,感谢