<
From version < 53.9 >
edited by Xiaoling
on 2023/08/02 11:57
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
... ... @@ -21,6 +21,7 @@
21 21  |1NCE| | |
22 22  |China Mobile| | |
23 23  
24 +
24 24  == 2.1 1NCE SIM Card. ==
25 25  
26 26  
... ... @@ -72,15 +72,15 @@
72 72  
73 73  (% style="color:blue" %)**AT Commands:**
74 74  
75 -* (% style="color:#037691" %)**AT+PRO=3,0**   (%%) ~/~/  Set to use MQTT protocol to uplink, Payload Type select Hex payload.
76 +* (% style="color:#037691" %)**AT+PRO=3,0**  (%%) ~/~/  Set to use MQTT protocol to uplink, Payload Type select Hex payload.
76 76  
77 -* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,1883**  (%%) ~/~/  Set MQTT server address and port
78 +* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,1883**  (%%)  ~/~/  Set MQTT server address and port
78 78  
79 -* (% style="color:#037691" %)**AT+CLIENT=CLIENT**     (%%) ~/~/  Set up the CLIENT of MQTT
80 +* (% style="color:#037691" %)**AT+CLIENT=CLIENT**  (%%) ~/~/  Set up the CLIENT of MQTT
80 80  
81 -* (% style="color:#037691" %)**AT+UNAME=UNAME**        (%%) ~/~/  Set the username of MQTT
82 +* (% style="color:#037691" %)**AT+UNAME=UNAME**  (%%) ~/~/  Set the username of MQTT
82 82  
83 -* (% style="color:#037691" %)**AT+PWD=PWD**             (%%) ~/~/  Set the password of MQTT
84 +* (% style="color:#037691" %)**AT+PWD=PWD**  (%%) ~/~/  Set the password of MQTT
84 84  
85 85  * (% style="color:#037691" %)**AT+PUBTOPIC=NSE01_PUB**  (%%) ~/~/  Set the sending topic of MQTT
86 86  
... ... @@ -90,14 +90,13 @@
90 90  
91 91  [[image:image-20230802112413-5.png]]
92 92  
93 -(% style="color:red" %)**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.**
94 94  
95 95  
96 96  == 3.3 [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) ==
97 97  
98 -=== 3.3.1 Get MQTT Credentials ===
99 +== 1.1 Get MQTT Credentials ==
99 99  
100 -
101 101  [[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.
102 102  
103 103  [[image:image-20230802112413-6.png]]
... ... @@ -105,24 +105,22 @@
105 105  [[image:image-20230802112413-7.png]]
106 106  
107 107  
108 -== 3.3.2 Simulate with MQTT.fx ==
108 +== 1.2Simulate with MQTT.fx ==
109 109  
110 -=== 3.3.2.1 Establish MQTT Connection ===
110 +=== 1.2.1 Establish MQTT Connection ===
111 111  
112 -
113 113  After we got MQTT Credentials, we can first simulate with PC tool MQTT.fx tool to see if the Credentials and settings are fine.
114 114  
115 115  [[image:image-20230802112413-8.png]]
116 116  
117 -* (% style="color:#037691" %)**Broker Address:**(%%) mqtt3.thingspeak.com
116 +* Broker Address: mqtt3.thingspeak.com
117 +* Broker Port: 1883
118 +* Client ID: <Your ThingSpeak MQTT ClientID>
119 +* User Name: <Your ThingSpeak MQTT User Name>
120 +* Password: <Your ThingSpeak MQTT Password>
118 118  
119 -* (% style="color:#037691" %)**Broker Port:**(%%) 1883
120 -* (% style="color:#037691" %)**Client ID:**(%%) <Your ThingSpeak MQTT ClientID>
121 -* (% style="color:#037691" %)**User Name:**(%%) <Your ThingSpeak MQTT User Name>
122 -* (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password>
122 +=== 1.2.2 Publish Data to ThingSpeak Channel ===
123 123  
124 -=== 3.3.2.2 Publish Data to ThingSpeak Channel ===
125 -
126 126  [[image:image-20230802112413-9.png]]
127 127  
128 128  [[image:image-20230802112413-10.png]]
... ... @@ -147,15 +147,10 @@
147 147  In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx
148 148  
149 149  * AT+PRO=3,1   ~/~/Set to use ThingSpeak Server and Related Payload
150 -
151 151  * AT+CLIENT=<Your ThingSpeak MQTT ClientID>
152 -
153 153  * AT+UNAME=<Your ThingSpeak MQTT User Name>
154 -
155 155  * AT+PWD=<Your ThingSpeak MQTT Password>
156 -
157 157  * AT+PUBTOPIC=<YOUR_CHANNEL_ID>
158 -
159 159  * AT+SUBTOPIC=<YOUR_CHANNEL_ID>
160 160  
161 161  === 1.3.2 Uplink Examples ===
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0