<
From version < 53.9 >
edited by Xiaoling
on 2023/08/02 11:57
To version < 53.10 >
edited by Xiaoling
on 2023/08/02 12:04
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -117,10 +117,15 @@
117 117  * (% style="color:#037691" %)**Broker Address:**(%%) mqtt3.thingspeak.com
118 118  
119 119  * (% style="color:#037691" %)**Broker Port:**(%%) 1883
120 +
120 120  * (% style="color:#037691" %)**Client ID:**(%%) <Your ThingSpeak MQTT ClientID>
122 +
121 121  * (% style="color:#037691" %)**User Name:**(%%) <Your ThingSpeak MQTT User Name>
124 +
122 122  * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password>
123 123  
127 +
128 +
124 124  === 3.3.2.2 Publish Data to ThingSpeak Channel ===
125 125  
126 126  [[image:image-20230802112413-9.png]]
... ... @@ -127,39 +127,44 @@
127 127  
128 128  [[image:image-20230802112413-10.png]]
129 129  
130 -In MQTT.fx, we can publish below info:
135 +(% style="color:blue" %)**In MQTT.fx, we can publish below info:**
131 131  
132 -* Topic: channels/YOUR_CHANNEL_ID/publish
133 -* Payload: field1=63&field2=67&status=MQTTPUBLISH
137 +* (% style="color:#037691" %)**Topic:**(%%) channels/YOUR_CHANNEL_ID/publish
134 134  
139 +* (% style="color:#037691" %)**Payload:**(%%) field1=63&field2=67&status=MQTTPUBLISH
140 +
135 135  Where 63 and 67 are the value to be published to field1 & field2.
136 136  
137 137  
138 -Result:
144 +(% style="color:blue" %)**Result: **
139 139  
140 140  [[image:image-20230802112413-11.png]]
141 141  
142 142  
143 -== 1.3 Configure NB-IoT Sensor for connection ==
149 +== 3.3 Configure NB-IoT Sensor for connection ==
144 144  
145 -=== 1.3.1 AT Commands: ===
151 +=== 3.3.1 AT Commands: ===
146 146  
153 +
147 147  In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx
148 148  
149 -* AT+PRO=3,1   ~/~/Set to use ThingSpeak Server and Related Payload
156 +* **AT+PRO=3,1**   ~/~/ Set to use ThingSpeak Server and Related Payload
150 150  
151 -* AT+CLIENT=<Your ThingSpeak MQTT ClientID>
158 +* **AT+CLIENT=<Your ThingSpeak MQTT ClientID>**
152 152  
153 -* AT+UNAME=<Your ThingSpeak MQTT User Name>
160 +* **AT+UNAME=<Your ThingSpeak MQTT User Name>**
154 154  
155 -* AT+PWD=<Your ThingSpeak MQTT Password>
162 +* **AT+PWD=<Your ThingSpeak MQTT Password>**
156 156  
157 -* AT+PUBTOPIC=<YOUR_CHANNEL_ID>
164 +* **AT+PUBTOPIC=<YOUR_CHANNEL_ID>**
158 158  
159 -* AT+SUBTOPIC=<YOUR_CHANNEL_ID>
166 +* **AT+SUBTOPIC=<YOUR_CHANNEL_ID>**
160 160  
161 -=== 1.3.2 Uplink Examples ===
162 162  
169 +
170 +=== 3.3.2 Uplink Examples ===
171 +
172 +
163 163  For S31-NB
164 164  
165 165  For SE01-NB
... ... @@ -185,8 +185,9 @@
185 185  For SN50V3-NB
186 186  
187 187  
188 -=== 1.3.2 Map fields to sensor value ===
198 +=== 3.3.3 Map fields to sensor value ===
189 189  
200 +
190 190  When NB-IoT sensor upload to ThingSpeak. The payload already specify which fileds related to which sensor value. Use need to create fileds in Channels Settings. with name so to see the value correctly.
191 191  
192 192  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0