Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -125,8 +125,11 @@ 125 125 126 126 * (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password> 127 127 128 -=== 3.3.2.2 Publish Data to ThingSpeak Channel === 129 129 129 + 130 +==== 3.3.2.2 Publish Data to ThingSpeak Channel ==== 131 + 132 + 130 130 [[image:image-20230802112413-9.png]] 131 131 132 132 [[image:image-20230802112413-10.png]] ... ... @@ -145,9 +145,9 @@ 145 145 [[image:image-20230802112413-11.png]] 146 146 147 147 148 -== 3.3 151 +=== 3.3.3 Configure NB-IoT Sensor for connection === 149 149 150 -=== 3.3.1 AT Commands: === 153 +==== 3.3.3.1 AT Commands: ==== 151 151 152 152 153 153 In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx ... ... @@ -165,7 +165,7 @@ 165 165 * (% style="color:blue" %)**AT+SUBTOPIC=<YOUR_CHANNEL_ID>** 166 166 167 167 168 -=== 3.3.2 Uplink Examples === 171 +==== 3.3.3.2 Uplink Examples ==== 169 169 170 170 171 171 For S31-NB ... ... @@ -193,7 +193,7 @@ 193 193 For SN50V3-NB 194 194 195 195 196 -=== 3.3.3 199 +==== 3.3.3.3 Map fields to sensor value ==== 197 197 198 198 199 199 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. ... ... @@ -229,7 +229,7 @@ 229 229 230 230 == 3.4 Datacake == 231 231 232 -== 3.4.1 Define Product == 235 +=== 3.4.1 Define Product === 233 233 234 234 235 235 Firstly, we need to set the MQTT mode to datacake, and we need to run(% style="color:blue" %)** AT+PRO=3,2**(%%). This command is set to datacake. After running the command, the device automatically sets the server address, port. ... ... @@ -244,7 +244,7 @@ 244 244 245 245 In the second step you have to define the device which should be added to the product. 246 246 247 -[[image:image-20230802112413-15.png]] 250 +[[image:image-20230802112413-15.png||height="859" width="1290"]] 248 248 249 249 Enter a name here (such as "My First MQTT Device") and complete the creation of the device by clicking on the (% style="color:blue" %)**"Next"**(%%) button. 250 250 ... ... @@ -256,15 +256,15 @@ 256 256 257 257 You will then see a device view with an empty dashboard. Now, the first thing we want to do is navigate to the Device configuration. To do this, use the tab bar and click on (% style="color:blue" %)**"Configuration"**. 258 258 259 -[[image:image-20230802112413-16.png]] 262 +[[image:image-20230802112413-16.png||height="495" width="1310"]] 260 260 261 -[[image:image-20230802112413-17.png]] 264 +[[image:image-20230802112413-17.png||height="741" width="1303"]] 262 262 263 263 To create a first database field, please click on the (% style="color:blue" %)**"Add Field"**(%%) button as marked in the screenshot above. 264 264 265 265 This will open another modal asking for some required input for your first field. 266 266 267 -[[image:image-20230802112413-18.png]] 270 +[[image:image-20230802112413-18.png||height="878" width="1305"]] 268 268 269 269 [[image:image-20230802112413-19.png]] 270 270 ... ... @@ -300,10 +300,8 @@ 300 300 301 301 (% style="color:blue" %)**Subscribe** 302 302 303 -Data is published according to the following structure: 306 +Data is published according to the following structure: **dtck~/~// ** 304 304 305 -dtck~/~// 306 - 307 307 Subscribe to topics using this structure to receive messages via MQTT when readings (via API or MQTT) arrive in the Datacake Cloud. Messages are published whenever there is a change to a corresponding database field. 308 308 309 309