Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,6 +22,7 @@ 22 22 |China Mobile| | | 23 23 24 24 25 + 25 25 == 2.1 1NCE SIM Card. == 26 26 27 27 ... ... @@ -49,9 +49,9 @@ 49 49 50 50 (% style="color:blue" %)**AT Commands:** 51 51 52 -* 53 -* 54 -* 53 +*(% style="color:#037691" %) **AT+PRO=2,0** (%%) ~/~/ Set to use UDP protocol to uplink ,Payload Type select Hex payload 54 +*(% style="color:#037691" %) **AT+SERVADDR=120.24.4.116,5601** (%%) ~/~/ Set UDP server address and port 55 +*(% style="color:#037691" %) **AT+CFM=1** (%%) ~/~/ If the server does not respond, this command is unnecessary 55 55 56 56 [[image:image-20230802112413-2.png]] 57 57 ... ... @@ -62,22 +62,21 @@ 62 62 [[image:image-20230802112413-3.png]] 63 63 64 64 65 -= 3.266 += 2. General MQTT Connection = 66 66 67 - 68 68 The NB-IoT Sensor can send packet to server use MQTT protocol. 69 69 70 -Below are the commands .70 +Below are the commands 71 71 72 - **AT Commands:**72 +AT Commands: 73 73 74 -* **AT+PRO=3,0**75 -* **AT+SERVADDR=120.24.4.116,1883**~/~/ Set MQTT server address and port76 -* **AT+CLIENT=CLIENT**77 -* **AT+UNAME=UNAME**78 -* **AT+PWD=PWD**79 -* **AT+PUBTOPIC=NSE01_PUB**80 -* **AT+SUBTOPIC=NSE01_SUB**74 +* AT+PRO=3,0 ~/~/ Set to use MQTT protocol to uplink, Payload Type select Hex payload. 75 +* AT+SERVADDR=120.24.4.116,1883 ~/~/ Set MQTT server address and port 76 +* AT+CLIENT=CLIENT ~/~/ Set up the CLIENT of MQTT 77 +* AT+UNAME=UNAME ~/~/ Set the username of MQTT 78 +* AT+PWD=PWD ~/~/ Set the password of MQTT 79 +* AT+PUBTOPIC=NSE01_PUB ~/~/ Set the sending topic of MQTT 80 +* AT+SUBTOPIC=NSE01_SUB ~/~/ Set the subscription topic of MQTT 81 81 82 82 [[image:image-20230802112413-4.png]] 83 83 ... ... @@ -144,6 +144,7 @@ 144 144 * AT+PUBTOPIC=<YOUR_CHANNEL_ID> 145 145 * AT+SUBTOPIC=<YOUR_CHANNEL_ID> 146 146 147 + 147 147 === 1.3.2 Uplink Examples === 148 148 149 149 For S31-NB