Last modified by Mengting Qiu on 2025/03/08 11:33
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -21,7 +21,6 @@ 21 21 |1NCE| | | 22 22 |China Mobile| | | 23 23 24 - 25 25 == 2.1 1NCE SIM Card. == 26 26 27 27 ... ... @@ -73,15 +73,15 @@ 73 73 74 74 (% style="color:blue" %)**AT Commands:** 75 75 76 -* (% style="color:#037691" %)**AT+PRO=3,0** 75 +* (% style="color:#037691" %)**AT+PRO=3,0** (%%) ~/~/ Set to use MQTT protocol to uplink, Payload Type select Hex payload. 77 77 78 -* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,1883** 77 +* (% style="color:#037691" %)**AT+SERVADDR=120.24.4.116,1883** (%%) ~/~/ Set MQTT server address and port 79 79 80 -* (% style="color:#037691" %)**AT+CLIENT=CLIENT** 79 +* (% style="color:#037691" %)**AT+CLIENT=CLIENT** (%%) ~/~/ Set up the CLIENT of MQTT 81 81 82 -* (% style="color:#037691" %)**AT+UNAME=UNAME** 81 +* (% style="color:#037691" %)**AT+UNAME=UNAME** (%%) ~/~/ Set the username of MQTT 83 83 84 -* (% style="color:#037691" %)**AT+PWD=PWD** 83 +* (% style="color:#037691" %)**AT+PWD=PWD** (%%) ~/~/ Set the password of MQTT 85 85 86 86 * (% style="color:#037691" %)**AT+PUBTOPIC=NSE01_PUB** (%%) ~/~/ Set the sending topic of MQTT 87 87 ... ... @@ -91,13 +91,14 @@ 91 91 92 92 [[image:image-20230802112413-5.png]] 93 93 94 -**Notice: MQTT 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.** 95 95 96 96 97 97 == 3.3 [[ThingSpeak>>url:https://thingspeak.com/]] (via MQTT) == 98 98 99 -== 1.1 Get MQTT Credentials ==98 +=== 3.3.1 Get MQTT Credentials === 100 100 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,54 +105,71 @@ 105 105 [[image:image-20230802112413-7.png]] 106 106 107 107 108 -== 1.2.108 +== 3.3.2 Simulate with MQTT.fx == 109 109 110 -=== 1.2.1 Establish MQTT Connection ===110 +=== 3.3.2.1 Establish MQTT Connection === 111 111 112 + 112 112 After we got MQTT Credentials, we can first simulate with PC tool MQTT.fx tool to see if the Credentials and settings are fine. 113 113 114 114 [[image:image-20230802112413-8.png]] 115 115 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> 117 +* (% style="color:#037691" %)**Broker Address:**(%%) mqtt3.thingspeak.com 121 121 122 - ===1.2.2 Publish Data to ThingSpeak Channel===119 +* (% style="color:#037691" %)**Broker Port:**(%%) 1883 123 123 121 +* (% style="color:#037691" %)**Client ID:**(%%) <Your ThingSpeak MQTT ClientID> 122 + 123 +* (% style="color:#037691" %)**User Name:**(%%) <Your ThingSpeak MQTT User Name> 124 + 125 +* (% style="color:#037691" %)**Password:**(%%) <Your ThingSpeak MQTT Password> 126 + 127 + 128 + 129 +=== 3.3.2.2 Publish Data to ThingSpeak Channel === 130 + 124 124 [[image:image-20230802112413-9.png]] 125 125 126 126 [[image:image-20230802112413-10.png]] 127 127 128 -In MQTT.fx, we can publish below info: 135 +(% style="color:blue" %)**In MQTT.fx, we can publish below info:** 129 129 130 -* Topic: channels/YOUR_CHANNEL_ID/publish 131 -* Payload: field1=63&field2=67&status=MQTTPUBLISH 137 +* (% style="color:#037691" %)**Topic:**(%%) channels/YOUR_CHANNEL_ID/publish 132 132 139 +* (% style="color:#037691" %)**Payload:**(%%) field1=63&field2=67&status=MQTTPUBLISH 140 + 133 133 Where 63 and 67 are the value to be published to field1 & field2. 134 134 135 135 136 -Result: 144 +(% style="color:blue" %)**Result: ** 137 137 138 138 [[image:image-20230802112413-11.png]] 139 139 140 140 141 -== 1.3 Configure NB-IoT Sensor for connection ==149 +== 3.3 Configure NB-IoT Sensor for connection == 142 142 143 -=== 1.3.1 AT Commands: ===151 +=== 3.3.1 AT Commands: === 144 144 153 + 145 145 In the NB-IoT, we can run below commands so to publish the channels like MQTT.fx 146 146 147 -* AT+PRO=3,1 ~/~/Set to use ThingSpeak Server and Related Payload 148 -* AT+CLIENT=<Your ThingSpeak MQTT ClientID> 149 -* AT+UNAME=<Your ThingSpeak MQTT User Name> 150 -* AT+PWD=<Your ThingSpeak MQTT Password> 151 -* AT+PUBTOPIC=<YOUR_CHANNEL_ID> 152 -* AT+SUBTOPIC=<YOUR_CHANNEL_ID> 156 +* **AT+PRO=3,1** ~/~/ Set to use ThingSpeak Server and Related Payload 153 153 154 - ===1.3.2UplinkExamples ===158 +* **AT+CLIENT=<Your ThingSpeak MQTT ClientID>** 155 155 160 +* **AT+UNAME=<Your ThingSpeak MQTT User Name>** 161 + 162 +* **AT+PWD=<Your ThingSpeak MQTT Password>** 163 + 164 +* **AT+PUBTOPIC=<YOUR_CHANNEL_ID>** 165 + 166 +* **AT+SUBTOPIC=<YOUR_CHANNEL_ID>** 167 + 168 + 169 + 170 +=== 3.3.2 Uplink Examples === 171 + 172 + 156 156 For S31-NB 157 157 158 158 For SE01-NB ... ... @@ -178,8 +178,9 @@ 178 178 For SN50V3-NB 179 179 180 180 181 -=== 1.3.2Map fields to sensor value ===198 +=== 3.3.3 Map fields to sensor value === 182 182 200 + 183 183 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. 184 184 185 185 ... ... @@ -190,111 +190,116 @@ 190 190 191 191 Below is the NB-IoT Product Table show the mapping. 192 192 193 -|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %)Field1|(% colspan="1" rowspan="1" %)Field2|(% colspan="1" rowspan="1" %)Field3|(% colspan="1" rowspan="1" %)Field4|(% colspan="1" rowspan="1" %)Field5|(% colspan="1" rowspan="1" %)Field6|(% colspan="1" rowspan="1" %)Field7|(% colspan="1" rowspan="1" %)Field8|(% colspan="1" rowspan="1" %)((( 211 +(% border="1" cellspacing="4" style="width:1386px" %) 212 +|(% colspan="1" rowspan="1" style="width:124px" %) |(% colspan="1" rowspan="1" style="width:91px" %)Field1|(% colspan="1" rowspan="1" style="width:102px" %)Field2|(% colspan="1" rowspan="1" style="width:159px" %)Field3|(% colspan="1" rowspan="1" style="width:153px" %)Field4|(% colspan="1" rowspan="1" style="width:152px" %)Field5|(% colspan="1" rowspan="1" style="width:148px" %)Field6|(% colspan="1" rowspan="1" style="width:164px" %)Field7|(% colspan="1" rowspan="1" style="width:152px" %)Field8|(% colspan="1" rowspan="1" style="width:66px" %)((( 194 194 Field9 195 195 196 196 197 -)))|(% colspan="1" rowspan="1" %)((( 216 +)))|(% colspan="1" rowspan="1" style="width:66px" %)((( 198 198 Field10 199 199 200 200 201 201 ))) 202 -|(% colspan="1" rowspan="1" %)S31x-NB|(% colspan="1" rowspan="1" %)Temperature |(% colspan="1" rowspan="1" %)Humidity|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 203 -|(% colspan="1" rowspan="1" %)SE01-NB|(% colspan="1" rowspan="1" %)Temperature |(% colspan="1" rowspan="1" %)Humidity|(% colspan="1" rowspan="1" %)conduct|(% colspan="1" rowspan="1" %)dielectric_constant|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 204 -|(% colspan="1" rowspan="1" %)DDS20-NB|(% colspan="1" rowspan="1" %)distance|(% colspan="1" rowspan="1" %)((( 221 +|(% colspan="1" rowspan="1" style="width:124px" %)S31x-NB|(% colspan="1" rowspan="1" style="width:91px" %)Temperature |(% colspan="1" rowspan="1" style="width:102px" %)Humidity|(% colspan="1" rowspan="1" style="width:159px" %)Battery|(% colspan="1" rowspan="1" style="width:153px" %)RSSI|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 222 +|(% colspan="1" rowspan="1" style="width:124px" %)SE01-NB|(% colspan="1" rowspan="1" style="width:91px" %)Temperature |(% colspan="1" rowspan="1" style="width:102px" %)Humidity|(% colspan="1" rowspan="1" style="width:159px" %)conduct|(% colspan="1" rowspan="1" style="width:153px" %)dielectric_constant|(% colspan="1" rowspan="1" style="width:152px" %)Battery|(% colspan="1" rowspan="1" style="width:148px" %)RSSI|(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 223 +|(% colspan="1" rowspan="1" style="width:124px" %)DDS20-NB|(% colspan="1" rowspan="1" style="width:91px" %)distance|(% colspan="1" rowspan="1" style="width:102px" %)((( 205 205 Battery 206 206 207 207 208 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 209 -|(% colspan="1" rowspan="1" %)DDS45-NB|(% colspan="1" rowspan="1" %)distance|(% colspan="1" rowspan="1" %)((( 227 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 228 +|(% colspan="1" rowspan="1" style="width:124px" %)DDS45-NB|(% colspan="1" rowspan="1" style="width:91px" %)distance|(% colspan="1" rowspan="1" style="width:102px" %)((( 210 210 Battery 211 211 212 212 213 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 214 -|(% colspan="1" rowspan="1" %)DDS75-NB|(% colspan="1" rowspan="1" %)distance|(% colspan="1" rowspan="1" %)((( 232 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 233 +|(% colspan="1" rowspan="1" style="width:124px" %)DDS75-NB|(% colspan="1" rowspan="1" style="width:91px" %)distance|(% colspan="1" rowspan="1" style="width:102px" %)((( 215 215 Battery 216 216 217 217 218 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 219 -|(% colspan="1" rowspan="1" %)NMDS120-NB|(% colspan="1" rowspan="1" %)distance|(% colspan="1" rowspan="1" %)((( 237 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 238 +|(% colspan="1" rowspan="1" style="width:124px" %)NMDS120-NB|(% colspan="1" rowspan="1" style="width:91px" %)distance|(% colspan="1" rowspan="1" style="width:102px" %)((( 220 220 Battery 221 221 222 222 223 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 224 -|(% colspan="1" rowspan="1" %)SPH01-NB|(% colspan="1" rowspan="1" %)ph|(% colspan="1" rowspan="1" %)Temperature|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 225 -|(% colspan="1" rowspan="1" %)NLM01-NB|(% colspan="1" rowspan="1" %)Humidity|(% colspan="1" rowspan="1" %)Temperature|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 226 -|(% colspan="1" rowspan="1" %)NMDS200-NB|(% colspan="1" rowspan="1" %)distance1|(% colspan="1" rowspan="1" %)distance2|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 227 -|(% colspan="1" rowspan="1" %)CPN01-NB|(% colspan="1" rowspan="1" %)alarm|(% colspan="1" rowspan="1" %)count|(% colspan="1" rowspan="1" %)door open duration|(% colspan="1" rowspan="1" %)calc flag|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 228 -|(% colspan="1" rowspan="1" %)DS03A-NB|(% colspan="1" rowspan="1" %)level|(% colspan="1" rowspan="1" %)alarm|(% colspan="1" rowspan="1" %)pb14door open num|(% colspan="1" rowspan="1" %)pb14 last open time|(% colspan="1" rowspan="1" %)pb15 level status|(% colspan="1" rowspan="1" %)pb15 alarm status|(% colspan="1" rowspan="1" %)pb15 door open num|(% colspan="1" rowspan="1" %)pb15 last open time|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI 229 -|(% colspan="1" rowspan="1" %)SN50V3-NB|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 230 -|(% colspan="1" rowspan="1" %)mod1|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)DS18B20 Temp|(% colspan="1" rowspan="1" %)exit_state/input PA4|(% colspan="1" rowspan="1" %)adc0|(% colspan="1" rowspan="1" %)Temperature |(% colspan="1" rowspan="1" %)Humidity|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 231 -|(% colspan="1" rowspan="1" %)mod2|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)Battery|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)((( 242 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 243 +|(% colspan="1" rowspan="1" style="width:124px" %)SPH01-NB|(% colspan="1" rowspan="1" style="width:91px" %)ph|(% colspan="1" rowspan="1" style="width:102px" %)Temperature|(% colspan="1" rowspan="1" style="width:159px" %)Battery|(% colspan="1" rowspan="1" style="width:153px" %)RSSI|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 244 +|(% colspan="1" rowspan="1" style="width:124px" %)NLM01-NB|(% colspan="1" rowspan="1" style="width:91px" %)Humidity|(% colspan="1" rowspan="1" style="width:102px" %)Temperature|(% colspan="1" rowspan="1" style="width:159px" %)Battery|(% colspan="1" rowspan="1" style="width:153px" %)RSSI|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 245 +|(% colspan="1" rowspan="1" style="width:124px" %)NMDS200-NB|(% colspan="1" rowspan="1" style="width:91px" %)distance1|(% colspan="1" rowspan="1" style="width:102px" %)distance2|(% colspan="1" rowspan="1" style="width:159px" %)Battery|(% colspan="1" rowspan="1" style="width:153px" %)RSSI|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 246 +|(% colspan="1" rowspan="1" style="width:124px" %)CPN01-NB|(% colspan="1" rowspan="1" style="width:91px" %)alarm|(% colspan="1" rowspan="1" style="width:102px" %)count|(% colspan="1" rowspan="1" style="width:159px" %)door open duration|(% colspan="1" rowspan="1" style="width:153px" %)calc flag|(% colspan="1" rowspan="1" style="width:152px" %)Battery|(% colspan="1" rowspan="1" style="width:148px" %)RSSI|(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 247 +|(% colspan="1" rowspan="1" style="width:124px" %)DS03A-NB|(% colspan="1" rowspan="1" style="width:91px" %)level|(% colspan="1" rowspan="1" style="width:102px" %)alarm|(% colspan="1" rowspan="1" style="width:159px" %)pb14door open num|(% colspan="1" rowspan="1" style="width:153px" %)pb14 last open time|(% colspan="1" rowspan="1" style="width:152px" %)pb15 level status|(% colspan="1" rowspan="1" style="width:148px" %)pb15 alarm status|(% colspan="1" rowspan="1" style="width:164px" %)pb15 door open num|(% colspan="1" rowspan="1" style="width:152px" %)pb15 last open time|(% colspan="1" rowspan="1" style="width:66px" %)Battery|(% colspan="1" rowspan="1" style="width:66px" %)RSSI 248 +|(% colspan="1" rowspan="1" style="width:124px" %)SN50V3-NB|(% colspan="1" rowspan="1" style="width:91px" %) |(% colspan="1" rowspan="1" style="width:102px" %) |(% colspan="1" rowspan="1" style="width:159px" %) |(% colspan="1" rowspan="1" style="width:153px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 249 +|(% colspan="1" rowspan="1" style="width:124px" %)mod1|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)Battery|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)DS18B20 Temp|(% colspan="1" rowspan="1" style="width:152px" %)exit_state/input PA4|(% colspan="1" rowspan="1" style="width:148px" %)adc0|(% colspan="1" rowspan="1" style="width:164px" %)Temperature |(% colspan="1" rowspan="1" style="width:152px" %)Humidity|(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 250 +|(% colspan="1" rowspan="1" style="width:124px" %)mod2|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)Battery|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)((( 232 232 DS18B20 Temp 233 233 234 234 235 -)))|(% colspan="1" rowspan="1" %)((( 254 +)))|(% colspan="1" rowspan="1" style="width:152px" %)((( 236 236 exit_state/input PA4 237 237 238 238 239 -)))|(% colspan="1" rowspan="1" %)adc0|(% colspan="1" rowspan="1" %)distance|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 240 -|(% colspan="1" rowspan="1" %)mod3|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)((( 258 +)))|(% colspan="1" rowspan="1" style="width:148px" %)adc0|(% colspan="1" rowspan="1" style="width:164px" %)distance|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 259 +|(% colspan="1" rowspan="1" style="width:124px" %)mod3|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)((( 241 241 Battery 242 242 243 243 244 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)adc0|(% colspan="1" rowspan="1" %)((( 263 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)adc0|(% colspan="1" rowspan="1" style="width:152px" %)((( 245 245 exit_state/input PA4 246 246 247 247 248 -)))|(% colspan="1" rowspan="1" %)adc1|(% colspan="1" rowspan="1" %)Temperature|(% colspan="1" rowspan="1" %)Humidity|(% colspan="1" rowspan="1" %)adc4|(% colspan="1" rowspan="1" %) 249 -|(% colspan="1" rowspan="1" %)mod4|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)((( 267 +)))|(% colspan="1" rowspan="1" style="width:148px" %)adc1|(% colspan="1" rowspan="1" style="width:164px" %)Temperature|(% colspan="1" rowspan="1" style="width:152px" %)Humidity|(% colspan="1" rowspan="1" style="width:66px" %)adc4|(% colspan="1" rowspan="1" style="width:66px" %) 268 +|(% colspan="1" rowspan="1" style="width:124px" %)mod4|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)((( 250 250 Battery 251 251 252 252 253 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)((( 272 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)((( 254 254 DS18B20 Temp 255 255 256 256 257 -)))|(% colspan="1" rowspan="1" %)adc0|(% colspan="1" rowspan="1" %)((( 276 +)))|(% colspan="1" rowspan="1" style="width:152px" %)adc0|(% colspan="1" rowspan="1" style="width:148px" %)((( 258 258 exit_state/input PA4 259 259 260 260 261 -)))|(% colspan="1" rowspan="1" %)((( 280 +)))|(% colspan="1" rowspan="1" style="width:164px" %)((( 262 262 DS18B20 Temp2 263 263 264 264 265 -)))|(% colspan="1" rowspan="1" %)((( 284 +)))|(% colspan="1" rowspan="1" style="width:152px" %)((( 266 266 DS18B20 Temp3 267 267 268 268 269 -)))|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 270 -|(% colspan="1" rowspan="1" %)mod5|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)((( 288 +)))|(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 289 +|(% colspan="1" rowspan="1" style="width:124px" %)mod5|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)((( 271 271 Battery 272 272 273 273 274 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)((( 293 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)((( 275 275 DS18B20 Temp 276 276 277 277 278 -)))|(% colspan="1" rowspan="1" %)adc0|(% colspan="1" rowspan="1" %)((( 297 +)))|(% colspan="1" rowspan="1" style="width:152px" %)adc0|(% colspan="1" rowspan="1" style="width:148px" %)((( 279 279 exit_state/input PA4 280 280 281 281 282 -)))|(% colspan="1" rowspan="1" %)Weight|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 283 -|(% colspan="1" rowspan="1" %)mod6|(% colspan="1" rowspan="1" %)mod|(% colspan="1" rowspan="1" %)((( 301 +)))|(% colspan="1" rowspan="1" style="width:164px" %)Weight|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 302 +|(% colspan="1" rowspan="1" style="width:124px" %)mod6|(% colspan="1" rowspan="1" style="width:91px" %)mod|(% colspan="1" rowspan="1" style="width:102px" %)((( 284 284 Battery 285 285 286 286 287 -)))|(% colspan="1" rowspan="1" %)RSSI|(% colspan="1" rowspan="1" %)count|(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) |(% colspan="1" rowspan="1" %) 306 +)))|(% colspan="1" rowspan="1" style="width:159px" %)RSSI|(% colspan="1" rowspan="1" style="width:153px" %)count|(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:148px" %) |(% colspan="1" rowspan="1" style="width:164px" %) |(% colspan="1" rowspan="1" style="width:152px" %) |(% colspan="1" rowspan="1" style="width:66px" %) |(% colspan="1" rowspan="1" style="width:66px" %) 288 288 289 -= 4. Datacake = 290 290 291 -== 1.1 Define Product == 292 292 293 -Firstly, we need to set the MQTT mode to datacake, and we need to run AT+PRO=3,2. This command is set to datacake. After running the command, the device automatically sets the server address, port. 294 294 311 +== 3.4 Datacake == 295 295 296 - Bychosing to add thedevice under a "New Product" you are required to give a namefor this product. You cannameit something like "My First MQTTProduct".313 +== 3.4.1 Define Product == 297 297 315 + 316 +Firstly, we need to set the MQTT mode to datacake, and we need to run** AT+PRO=3,2**. This command is set to datacake. After running the command, the device automatically sets the server address, port. 317 + 318 + 319 +By chosing to add the device under a **"New Product"** you are required to give a name for this product. You can name it something like "My First MQTT Product". 320 + 298 298 [[image:image-20230802112413-14.png]] 299 299 300 300 == 1.2 Create Device ==