我要发送如下json: AT+MQTTPUB="req/100000",0,0,“ {"id":1000000,"type":"T_TEMP_DATA","time": 1721061465000 ,"section": 1}“
发送没成功 服务器没返回。用pc的MQTT客户端是正常返回的。
后来改成 AT+MQTTPUB="req/100000",0,0,“ {\"id\":1000000\,\"type\":\"T_TEMP_DATA\"\,\"time\": 1721061465000\ ,\"section\": 1}“
还是不行 ....................
看日志是这样的:
[2024_08_27_08_18_32.924] send:AT+MQTTPUB="req/100000",0,0,"{\"id\":1000000\,\"type\":\"T_TEMP_DATA\"\,\"time\":1721061465000\,\"section\":1}"
[2024_08_27_08_18_32.958] recv:AT+MQTTPUB="req/100000",0,0,"{\"id\":1000000\,\"type\":\"T_TEMP_DATA\"\,\"time\":1721061465000\,\"section\":1}"
OK
[2024_08_27_08_18_33.007] recv:
+EVENT:MQTT_DISCONNECT
[2024_08_27_08_18_34.039] recv:
+EVENT:MQTT_CONNECT
|
|