感谢您的及时回复。目前有3个疑问:
1.曾经确实是有两个设备公用一个clientId的现象,但是目前出现的问题和采集到相关日志,都是同一个设备;期间正常使用,发现问题后进行重启;会不会是单一设备进行重启时,第一次的连接虽然已经中断但是服务端未检测到掉线,重启后再连接,将第一次连接顶掉发生了问题?
2.如果我们改用开源版最新的v5.0.0,可以避免这个问题吗(我理解的是,好像不会哈)
3.我的日志中,未出现过takeovered事件,都是discarded。您的建议是,业务上认为discarded不是断线事件,直接忽略即可;
也希望上述阐述可以协助开发人员发现问题。谢谢
2022-06-27T17:00:21.814153+08:00 [debug] 116.3.197.73:53360 action: discard
msg: session_already_shutdown
pid: <0.2804.13>
2022-06-27T17:00:21.814780+08:00 [debug] 116.3.197.73:53360 client_id: <<"iedu_9161a7851">>
msg: insert_channel_info
2022-06-27T17:00:21.814863+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2022-06-27T17:00:27.100759+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<130,26,0,2,0,21,112,114,105,107,101,121,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:00:27.100914+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=2, TopicFilters=[{<<"prikey/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:00:27.101099+08:00 [info] 116.3.197.73:53360 iedu_9161a7851 SUBSCRIBE prikey/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:00:27.101402+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[1])
2022-06-27T17:00:27.101689+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=prikey/iedu_9161a7851, PacketId=1, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320421550\",\"sign\":\"b6fc0c9157966cb9aea0276806f11682\",\"data\":{\"peikey\":\"47501fe07f354bd9b0fb5c393f8fe534\"}}">>)
2022-06-27T17:00:27.340744+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<64,2,0,1>>
2022-06-27T17:00:27.340877+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=1, ReasonCode=0)
2022-06-27T17:00:27.447764+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<130,28,0,3,0,23,118,101,114,115,105,111,110,115,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:00:27.447932+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=3, TopicFilters=[{<<"versions/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:00:27.448109+08:00 [info] 116.3.197.73:53360 iedu_9161a7851 SUBSCRIBE versions/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:00:27.448354+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=3, ReasonCodes=[1])
2022-06-27T17:00:34.490957+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<130,31,0,4,0,26,100,101,109,111,110,115,116,114,97,116,101,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,2>>
2022-06-27T17:00:34.491124+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=4, TopicFilters=[{<<"demonstrate/iedu_9161a7851">>,#{nl => 0,qos => 2,rap => 0,rh => 0}}])
2022-06-27T17:00:34.491307+08:00 [info] 116.3.197.73:53360 iedu_9161a7851 SUBSCRIBE demonstrate/iedu_9161a7851: Options: #{nl => 0,qos => 2,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:00:34.491595+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=4, ReasonCodes=[2])
2022-06-27T17:00:40.332025+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<130,25,0,5,0,20,97,100,111,112,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:00:40.332178+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=5, TopicFilters=[{<<"adopt/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:00:40.332364+08:00 [info] 116.3.197.73:53360 iedu_9161a7851 SUBSCRIBE adopt/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:00:40.332626+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=5, ReasonCodes=[1])
2022-06-27T17:00:40.332907+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=adopt/iedu_9161a7851, PacketId=2, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCA\",\"timestamp\":\"1655881105\",\"version\":\"1.0.0\",\"sign\":\"63153f543a74871c5ca25679745e84a5\",\"data\":{\"adpId\":548518937293189120,\"days\":1,\"mt\":1,\"stus\":1,\"stTm\":\"2022-06-22 00:00:00\",\"edTm\":\"2022-06-27 00:00:00\",\"dinx\":0,\"minx\":0,\"d\":[{\"actId\":548518937519681536,\"idx\":0,\"act\":\"DIAPERS\",\"stTm\":\"08:46:37\",\"dur\":10,\"ned\":\"DIAPER\",\"voc1\":\"1-_2\",\"voc2\":\"rw1\",\"sftgVoc\":\"mz1\",\"sfteVoc\":\"mzjs1\"}]}}">>)
2022-06-27T17:00:40.521982+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<112,2,112,116,64,2,119,220,98,2,34,97>>
2022-06-27T17:00:40.522163+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV PUBCOMP(Q0, R0, D0, PacketId=28788, ReasonCode=0)
2022-06-27T17:00:40.522258+08:00 [warning] 116.3.197.73:53360 [Channel] The PUBCOMP PacketId 28788 is not found
2022-06-27T17:00:40.523330+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=30684, ReasonCode=0)
2022-06-27T17:00:40.523442+08:00 [warning] 116.3.197.73:53360 [Channel] The PUBACK PacketId 30684 is not found.
2022-06-27T17:00:40.523603+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV PUBREL(Q1, R0, D0, PacketId=8801, ReasonCode=0)
2022-06-27T17:00:40.523670+08:00 [warning] 116.3.197.73:53360 [Channel] The PUBREL PacketId 8801 is not found.
2022-06-27T17:00:40.523859+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND PUBCOMP(Q0, R0, D0, PacketId=8801, ReasonCode=146)
2022-06-27T17:01:10.333996+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND PUBLISH(Q1, R1, D1, Topic=adopt/iedu_9161a7851, PacketId=2, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCA\",\"timestamp\":\"1655881105\",\"version\":\"1.0.0\",\"sign\":\"63153f543a74871c5ca25679745e84a5\",\"data\":{\"adpId\":548518937293189120,\"days\":1,\"mt\":1,\"stus\":1,\"stTm\":\"2022-06-22 00:00:00\",\"edTm\":\"2022-06-27 00:00:00\",\"dinx\":0,\"minx\":0,\"d\":[{\"actId\":548518937519681536,\"idx\":0,\"act\":\"DIAPERS\",\"stTm\":\"08:46:37\",\"dur\":10,\"ned\":\"DIAPER\",\"voc1\":\"1-_2\",\"voc2\":\"rw1\",\"sftgVoc\":\"mz1\",\"sfteVoc\":\"mzjs1\"}]}}">>)
2022-06-27T17:01:10.556762+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV <<64,2,0,2>>
2022-06-27T17:01:10.556913+08:00 [debug] 116.3.197.73:53360 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=2, ReasonCode=0)
2022-06-27T17:04:17.122583+08:00 [debug] 116.3.197.73:49674 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=iedu_9161a7851, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=600, Username=test, Password=******)
2022-06-27T17:04:17.122782+08:00 [debug] 116.3.197.73:49674 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","proto_ver":4,"node":"emqx_c01@127.0.0.1","keepalive":600,"ipaddress":"116.3.197.73","connected_at":1656320657122,"clientid":"iedu_9161a7851","action":"client_connected"}
2022-06-27T17:04:17.533625+08:00 [debug] 116.3.197.73:53360 [MQTT] SEND PUBLISH(Q1, R0, D0, Topic=prikey/iedu_9161a7851, PacketId=3, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320657446\",\"sign\":\"407f4d6f7ee84a64e38fd7f2f046674f\",\"data\":{\"peikey\":\"50850deb52f74ec2a92b76b52817fad8\"}}">>)
2022-06-27T17:04:17.663223+08:00 [info] 116.3.197.73:53360 msg: terminate
reason: {shutdown,discarded}
2022-06-27T17:04:17.663560+08:00 [debug] 116.3.197.73:49674 client_id: <<"iedu_9161a7851">>
msg: insert_channel_info
2022-06-27T17:04:17.663642+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2022-06-27T17:04:22.828247+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,26,0,2,0,21,112,114,105,107,101,121,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:04:22.828420+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=2, TopicFilters=[{<<"prikey/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:04:22.828598+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE prikey/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:04:22.828823+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[1])
2022-06-27T17:04:22.829124+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=prikey/iedu_9161a7851, PacketId=1, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320657446\",\"sign\":\"407f4d6f7ee84a64e38fd7f2f046674f\",\"data\":{\"peikey\":\"50850deb52f74ec2a92b76b52817fad8\"}}">>)
2022-06-27T17:04:39.830499+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<64,2,0,1>>
2022-06-27T17:04:39.830631+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=1, ReasonCode=0)
2022-06-27T17:04:39.968577+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,28,0,3,0,23,118,101,114,115,105,111,110,115,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:04:39.968745+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=3, TopicFilters=[{<<"versions/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:04:39.968904+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE versions/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:04:39.969096+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=3, ReasonCodes=[1])
2022-06-27T17:04:45.967742+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,31,0,4,0,26,100,101,109,111,110,115,116,114,97,116,101,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,2>>
2022-06-27T17:04:45.967887+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=4, TopicFilters=[{<<"demonstrate/iedu_9161a7851">>,#{nl => 0,qos => 2,rap => 0,rh => 0}}])
2022-06-27T17:04:45.968066+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE demonstrate/iedu_9161a7851: Options: #{nl => 0,qos => 2,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:04:45.968256+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=4, ReasonCodes=[2])
2022-06-27T17:04:51.967012+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,25,0,5,0,20,97,100,111,112,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:04:51.967140+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=5, TopicFilters=[{<<"adopt/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:04:51.967325+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE adopt/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:04:51.967518+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=5, ReasonCodes=[1])
2022-06-27T17:04:51.967780+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=adopt/iedu_9161a7851, PacketId=2, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCA\",\"timestamp\":\"1655881105\",\"version\":\"1.0.0\",\"sign\":\"63153f543a74871c5ca25679745e84a5\",\"data\":{\"adpId\":548518937293189120,\"days\":1,\"mt\":1,\"stus\":1,\"stTm\":\"2022-06-22 00:00:00\",\"edTm\":\"2022-06-27 00:00:00\",\"dinx\":0,\"minx\":0,\"d\":[{\"actId\":548518937519681536,\"idx\":0,\"act\":\"DIAPERS\",\"stTm\":\"08:46:37\",\"dur\":10,\"ned\":\"DIAPER\",\"voc1\":\"1-_2\",\"voc2\":\"rw1\",\"sftgVoc\":\"mz1\",\"sfteVoc\":\"mzjs1\"}]}}">>)
2022-06-27T17:04:52.158011+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<64,2,0,2>>
2022-06-27T17:04:52.158157+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=2, ReasonCode=0)
2022-06-27T17:04:57.967012+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,27,0,6,0,22,100,101,112,111,115,105,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:04:57.967174+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=6, TopicFilters=[{<<"deposit/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:04:57.967345+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE deposit/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:04:57.967543+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=6, ReasonCodes=[1])
2022-06-27T17:05:03.965254+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,28,0,7,0,23,114,111,117,103,104,78,114,115,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:05:03.965418+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=7, TopicFilters=[{<<"roughNrs/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:05:03.965605+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE roughNrs/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:05:03.965877+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=7, ReasonCodes=[1])
2022-06-27T17:05:09.960223+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,30,0,8,0,25,105,110,115,112,101,99,116,105,111,110,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:05:09.960393+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=8, TopicFilters=[{<<"inspection/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:05:09.960566+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE inspection/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:05:09.960781+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=8, ReasonCodes=[1])
2022-06-27T17:05:15.961583+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<130,28,0,9,0,23,101,114,114,111,114,77,115,103,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:05:15.961733+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=9, TopicFilters=[{<<"errorMsg/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:05:15.961902+08:00 [info] 116.3.197.73:49674 iedu_9161a7851 SUBSCRIBE errorMsg/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:05:15.962093+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=9, ReasonCodes=[1])
2022-06-27T17:05:16.169445+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV <<48,211,1,0,23,112,116,82,101,112,111,114,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,123,34,99,108,105,101,110,116,105,100,34,58,34,105,101,100,117,95,57,49,54,49,97,55,56,53,49,34,44,34,97,99,116,105,111,110,34,58,34,68,80,82,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,49,54,53,54,51,50,48,55,49,48,34,44,34,115,105,103,110,34,58,34,70,70,52,69,69,56,52,56,55,55,52,65,48,70,65,66,56,65,51,49,54,50,56,55,69,54,51,70,49,49,52,70,34,44,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,100,97,116,97,34,58,123,34,116,121,112,101,34,58,34,50,34,44,34,116,115,34,58,48,44,34,103,121,34,58,49,44,34,103,115,34,58,49,44,34,105,99,34,58,49,44,34,97,117,34,58,48,125,125,13,10>>
2022-06-27T17:05:16.169678+08:00 [debug] 116.3.197.73:49674 [MQTT] RECV PUBLISH(Q0, R0, D0, Topic=ptReport/iedu_9161a7851, PacketId=undefined, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"DPR\",\"timestamp\":\"1656320710\",\"sign\":\"FF4EE848774A0FAB8A316287E63F114F\",\"version\":\"1.0.0\",\"data\":{\"type\":\"2\",\"ts\":0,\"gy\":1,\"gs\":1,\"ic\":1,\"au\":0}}\r\n">>)
2022-06-27T17:05:16.169870+08:00 [info] 116.3.197.73:49674 PUBLISH to ptReport/iedu_9161a7851: <<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"DPR\",\"timestamp\":\"1656320710\",\"sign\":\"FF4EE848774A0FAB8A316287E63F114F\",\"version\":\"1.0.0\",\"data\":{\"type\":\"2\",\"ts\":0,\"gy\":1,\"gs\":1,\"ic\":1,\"au\":0}}\r\n">>
2022-06-27T17:06:50.686478+08:00 [debug] 116.3.197.73:63185 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=iedu_9161a7851, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=600, Username=test, Password=******)
2022-06-27T17:06:50.686667+08:00 [debug] 116.3.197.73:63185 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","proto_ver":4,"node":"emqx_c01@127.0.0.1","keepalive":600,"ipaddress":"116.3.197.73","connected_at":1656320810686,"clientid":"iedu_9161a7851","action":"client_connected"}
2022-06-27T17:06:51.051522+08:00 [debug] 116.3.197.73:49674 [MQTT] SEND PUBLISH(Q1, R0, D0, Topic=prikey/iedu_9161a7851, PacketId=3, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320811005\",\"sign\":\"40b22d1c41133f856b271d432a394936\",\"data\":{\"peikey\":\"09cd5d0ab7b5432fbc3dee17b3842e86\"}}">>)
2022-06-27T17:06:51.144102+08:00 [debug] 116.3.197.73:49674 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","reason":"tcp_closed","node":"emqx_c01@127.0.0.1","disconnected_at":1656320811144,"connected_at":1656320657122,"clientid":"iedu_9161a7851","action":"client_disconnected"}
2022-06-27T17:06:51.249026+08:00 [info] 116.3.197.73:49674 msg: terminate
reason: {shutdown,tcp_closed}
2022-06-27T17:06:51.249564+08:00 [debug] 116.3.197.73:63185 action: discard
msg: session_already_shutdown
pid: <0.3456.13>
2022-06-27T17:06:51.249853+08:00 [debug] 116.3.197.73:63185 client_id: <<"iedu_9161a7851">>
msg: insert_channel_info
2022-06-27T17:06:51.249932+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2022-06-27T17:06:57.118899+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,26,0,2,0,21,112,114,105,107,101,121,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:06:57.119057+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=2, TopicFilters=[{<<"prikey/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:06:57.119236+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE prikey/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:06:57.119473+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=2, ReasonCodes=[1])
2022-06-27T17:06:57.119707+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=prikey/iedu_9161a7851, PacketId=1, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320811005\",\"sign\":\"40b22d1c41133f856b271d432a394936\",\"data\":{\"peikey\":\"09cd5d0ab7b5432fbc3dee17b3842e86\"}}">>)
2022-06-27T17:06:57.299859+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<64,2,0,1>>
2022-06-27T17:06:57.299989+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=1, ReasonCode=0)
2022-06-27T17:06:57.595851+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,28,0,3,0,23,118,101,114,115,105,111,110,115,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:06:57.596033+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=3, TopicFilters=[{<<"versions/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:06:57.596234+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE versions/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:06:57.596443+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=3, ReasonCodes=[1])
2022-06-27T17:07:03.301122+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,31,0,4,0,26,100,101,109,111,110,115,116,114,97,116,101,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,2>>
2022-06-27T17:07:03.301282+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=4, TopicFilters=[{<<"demonstrate/iedu_9161a7851">>,#{nl => 0,qos => 2,rap => 0,rh => 0}}])
2022-06-27T17:07:03.301458+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE demonstrate/iedu_9161a7851: Options: #{nl => 0,qos => 2,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:03.301679+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=4, ReasonCodes=[2])
2022-06-27T17:07:09.298139+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,25,0,5,0,20,97,100,111,112,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:07:09.298308+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=5, TopicFilters=[{<<"adopt/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:07:09.298504+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE adopt/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:09.298803+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=5, ReasonCodes=[1])
2022-06-27T17:07:09.299096+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND PUBLISH(Q1, R1, D0, Topic=adopt/iedu_9161a7851, PacketId=2, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCA\",\"timestamp\":\"1655881105\",\"version\":\"1.0.0\",\"sign\":\"63153f543a74871c5ca25679745e84a5\",\"data\":{\"adpId\":548518937293189120,\"days\":1,\"mt\":1,\"stus\":1,\"stTm\":\"2022-06-22 00:00:00\",\"edTm\":\"2022-06-27 00:00:00\",\"dinx\":0,\"minx\":0,\"d\":[{\"actId\":548518937519681536,\"idx\":0,\"act\":\"DIAPERS\",\"stTm\":\"08:46:37\",\"dur\":10,\"ned\":\"DIAPER\",\"voc1\":\"1-_2\",\"voc2\":\"rw1\",\"sftgVoc\":\"mz1\",\"sfteVoc\":\"mzjs1\"}]}}">>)
2022-06-27T17:07:09.503139+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<64,2,0,2>>
2022-06-27T17:07:09.503260+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV PUBACK(Q0, R0, D0, PacketId=2, ReasonCode=0)
2022-06-27T17:07:15.294373+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,27,0,6,0,22,100,101,112,111,115,105,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:07:15.294509+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=6, TopicFilters=[{<<"deposit/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:07:15.294672+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE deposit/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:15.294934+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=6, ReasonCodes=[1])
2022-06-27T17:07:21.293608+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,28,0,7,0,23,114,111,117,103,104,78,114,115,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:07:21.293771+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=7, TopicFilters=[{<<"roughNrs/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:07:21.293937+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE roughNrs/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:21.294139+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=7, ReasonCodes=[1])
2022-06-27T17:07:27.294638+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,30,0,8,0,25,105,110,115,112,101,99,116,105,111,110,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:07:27.294806+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=8, TopicFilters=[{<<"inspection/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:07:27.294962+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE inspection/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:27.295179+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=8, ReasonCodes=[1])
2022-06-27T17:07:33.290870+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<130,28,0,9,0,23,101,114,114,111,114,77,115,103,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,1>>
2022-06-27T17:07:33.291013+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV SUBSCRIBE(Q1, R0, D0, PacketId=9, TopicFilters=[{<<"errorMsg/iedu_9161a7851">>,#{nl => 0,qos => 1,rap => 0,rh => 0}}])
2022-06-27T17:07:33.291192+08:00 [info] 116.3.197.73:63185 iedu_9161a7851 SUBSCRIBE errorMsg/iedu_9161a7851: Options: #{nl => 0,qos => 1,rap => 0,rh => 0,sub_props => #{}}
2022-06-27T17:07:33.291409+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND SUBACK(Q0, R0, D0, PacketId=9, ReasonCodes=[1])
2022-06-27T17:07:33.489913+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV <<48,211,1,0,23,112,116,82,101,112,111,114,116,47,105,101,100,117,95,57,49,54,49,97,55,56,53,49,123,34,99,108,105,101,110,116,105,100,34,58,34,105,101,100,117,95,57,49,54,49,97,55,56,53,49,34,44,34,97,99,116,105,111,110,34,58,34,68,80,82,34,44,34,116,105,109,101,115,116,97,109,112,34,58,34,49,54,53,54,51,50,48,56,52,55,34,44,34,115,105,103,110,34,58,34,53,68,49,69,53,50,51,57,67,50,70,51,66,69,65,50,50,51,55,55,70,49,70,55,49,50,67,57,65,55,66,53,34,44,34,118,101,114,115,105,111,110,34,58,34,49,46,48,46,48,34,44,34,100,97,116,97,34,58,123,34,116,121,112,101,34,58,34,50,34,44,34,116,115,34,58,48,44,34,103,121,34,58,49,44,34,103,115,34,58,49,44,34,105,99,34,58,49,44,34,97,117,34,58,48,125,125,13,10>>
2022-06-27T17:07:33.490136+08:00 [debug] 116.3.197.73:63185 [MQTT] RECV PUBLISH(Q0, R0, D0, Topic=ptReport/iedu_9161a7851, PacketId=undefined, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"DPR\",\"timestamp\":\"1656320847\",\"sign\":\"5D1E5239C2F3BEA22377F1F712C9A7B5\",\"version\":\"1.0.0\",\"data\":{\"type\":\"2\",\"ts\":0,\"gy\":1,\"gs\":1,\"ic\":1,\"au\":0}}\r\n">>)
2022-06-27T17:07:33.490315+08:00 [info] 116.3.197.73:63185 PUBLISH to ptReport/iedu_9161a7851: <<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"DPR\",\"timestamp\":\"1656320847\",\"sign\":\"5D1E5239C2F3BEA22377F1F712C9A7B5\",\"version\":\"1.0.0\",\"data\":{\"type\":\"2\",\"ts\":0,\"gy\":1,\"gs\":1,\"ic\":1,\"au\":0}}\r\n">>
2022-06-27T17:09:27.399220+08:00 [debug] 116.3.197.73:63441 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=iedu_9161a7851, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=600, Username=test, Password=******)
2022-06-27T17:09:27.399420+08:00 [debug] 116.3.197.73:63441 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","proto_ver":4,"node":"emqx_c01@127.0.0.1","keepalive":600,"ipaddress":"116.3.197.73","connected_at":1656320967399,"clientid":"iedu_9161a7851","action":"client_connected"}
2022-06-27T17:09:27.756767+08:00 [debug] 116.3.197.73:63185 [MQTT] SEND PUBLISH(Q1, R0, D0, Topic=prikey/iedu_9161a7851, PacketId=3, Payload=<<"{\"clientid\":\"iedu_9161a7851\",\"action\":\"SCK\",\"timestamp\":\"1656320967714\",\"sign\":\"16b867a6fa8fd29a3d8e0df4700e513f\",\"data\":{\"peikey\":\"5a13494b6304435bb6a326ab451410aa\"}}">>)
2022-06-27T17:09:27.832758+08:00 [debug] 116.3.197.73:63185 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","reason":"tcp_closed","node":"emqx_c01@127.0.0.1","disconnected_at":1656320967832,"connected_at":1656320810686,"clientid":"iedu_9161a7851","action":"client_disconnected"}
2022-06-27T17:09:27.906002+08:00 [info] 116.3.197.73:63185 msg: terminate
reason: {shutdown,tcp_closed}
2022-06-27T17:09:27.906215+08:00 [debug] 116.3.197.73:63441 action: discard
msg: session_already_shutdown
pid: <0.3541.13>
2022-06-27T17:09:27.906478+08:00 [debug] 116.3.197.73:63441 client_id: <<"iedu_9161a7851">>
msg: insert_channel_info
2022-06-27T17:09:27.906575+08:00 [debug] 116.3.197.73:63441 [MQTT] SEND CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2022-06-27T17:10:21.254377+08:00 [debug] 116.3.197.73:62855 [Channel] RECV CONNECT(Q0, R0, D0, ClientId=iedu_9161a7851, ProtoName=MQTT, ProtoVsn=4, CleanStart=true, KeepAlive=600, Username=test, Password=******)
2022-06-27T17:10:21.254587+08:00 [debug] 116.3.197.73:62855 [WebHook] Send to: "/mqttauth/webhook/advance", params: {"username":"test","proto_ver":4,"node":"emqx_c01@127.0.0.1","keepalive":600,"ipaddress":"116.3.197.73","connected_at":1656321021254,"clientid":"iedu_9161a7851","action":"client_connected"}
2022-06-27T17:10:21.731200+08:00 [info] 116.3.197.73:63441 msg: terminate
reason: {shutdown,discarded}