<
From version < 53.4 >
edited by Xiaoling
on 2023/08/02 11:44
To version < 53.8 >
edited by Xiaoling
on 2023/08/02 11:51
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -22,7 +22,6 @@
22 22  |China Mobile| | |
23 23  
24 24  
25 -
26 26  == 2.1 1NCE SIM Card. ==
27 27  
28 28  
... ... @@ -50,10 +50,12 @@
50 50  
51 51  (% style="color:blue" %)**AT Commands:**
52 52  
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
52 +* (% style="color:#037691" %)**AT+PRO=2,0**  (%%) ~/~/  Set to use UDP protocol to uplink ,Payload Type select Hex payload
56 56  
54 +* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,5601**  (%%) ~/~/  Set UDP server address and port
55 +
56 +* (% style="color:#037691" %)**AT+CFM=1**    (%%) ~/~/  If the server does not respond, this command is unnecessary
57 +
57 57  [[image:image-20230802112413-2.png]]
58 58  
59 59  
... ... @@ -63,32 +63,38 @@
63 63  [[image:image-20230802112413-3.png]]
64 64  
65 65  
66 -= 2. General MQTT Connection =
67 +== 3.2 General MQTT Connection ==
67 67  
69 +
68 68  The NB-IoT Sensor can send packet to server use MQTT protocol.
69 69  
70 -Below are the commands
72 +Below are the commands.
71 71  
72 -AT Commands:
74 +(% style="color:blue" %)**AT Commands:**
73 73  
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
76 +* (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/  Set to use MQTT protocol to uplink, Payload Type select Hex payload.
81 81  
78 +* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,1883**  (%%)  ~/~/  Set MQTT server address and port
79 +
80 +* (% style="color:#037691" %)**AT+CLIENT=CLIENT**  (%%) ~/~/  Set up the CLIENT of MQTT
81 +
82 +* (% style="color:#037691" %)**AT+UNAME=UNAME**  (%%) ~/~/  Set the username of MQTT
83 +
84 +* (% style="color:#037691" %)**AT+PWD=PWD**  (%%) ~/~/  Set the password of MQTT
85 +
86 +* (% style="color:#037691" %)**AT+PUBTOPIC=NSE01_PUB**  (%%) ~/~/  Set the sending topic of MQTT
87 +
88 +* (% style="color:#037691" %)**AT+SUBTOPIC=NSE01_SUB**  (%%) ~/~/  Set the subscription topic of MQTT
89 +
82 82  [[image:image-20230802112413-4.png]]
83 83  
84 84  [[image:image-20230802112413-5.png]]
85 85  
86 -Notice: MQTT  protocol has a much higher power consumption compare with UDP / CoAP  protocol. Please check the power analyze document and adjust the uplink  period to a suitable interval.
94 +**Notice: MQTT  protocol has a much higher power consumption compare with UDP / CoAP  protocol. Please check the power analyze document and adjust the uplink  period to a suitable interval.**
87 87  
88 88  
97 +== 3.3 [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) ==
89 89  
90 -= 3. [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) =
91 -
92 92  == 1.1 Get MQTT Credentials ==
93 93  
94 94  [[ThingSpeak>>url:https://thingspeak.com/]] connection uses MQTT Connection. So we need to get MQTT Credentials first. You need to point MQTT Devices to ThingSpeak Channel as well.
... ... @@ -144,7 +144,6 @@
144 144  * AT+PUBTOPIC=<YOUR_CHANNEL_ID>
145 145  * AT+SUBTOPIC=<YOUR_CHANNEL_ID>
146 146  
147 -
148 148  === 1.3.2 Uplink Examples ===
149 149  
150 150  For S31-NB
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0