Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -232,7 +232,7 @@ 232 232 233 233 == 3.4 Datacake == 234 234 235 -== 3.4.1 Define Product == 235 +=== 3.4.1 Define Product === 236 236 237 237 238 238 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. ... ... @@ -247,7 +247,7 @@ 247 247 248 248 In the second step you have to define the device which should be added to the product. 249 249 250 -[[image:image-20230802112413-15.png]] 250 +[[image:image-20230802112413-15.png||height="859" width="1290"]] 251 251 252 252 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. 253 253 ... ... @@ -259,15 +259,15 @@ 259 259 260 260 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"**. 261 261 262 -[[image:image-20230802112413-16.png]] 262 +[[image:image-20230802112413-16.png||height="495" width="1310"]] 263 263 264 -[[image:image-20230802112413-17.png]] 264 +[[image:image-20230802112413-17.png||height="741" width="1303"]] 265 265 266 266 To create a first database field, please click on the (% style="color:blue" %)**"Add Field"**(%%) button as marked in the screenshot above. 267 267 268 268 This will open another modal asking for some required input for your first field. 269 269 270 -[[image:image-20230802112413-18.png]] 270 +[[image:image-20230802112413-18.png||height="878" width="1305"]] 271 271 272 272 [[image:image-20230802112413-19.png]] 273 273 ... ... @@ -303,10 +303,8 @@ 303 303 304 304 (% style="color:blue" %)**Subscribe** 305 305 306 -Data is published according to the following structure: 306 +Data is published according to the following structure: **dtck~/~// ** 307 307 308 -dtck~/~// 309 - 310 310 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. 311 311 312 312