Changes for page Through MQTT to upload data
Last modified by Xiaoling on 2022/09/02 18:11
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 4 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -252,10 +252,14 @@ 252 252 1. ((( 253 253 [[image:image-20220531142023-35.png]] 254 254 255 + 255 255 256 256 ))) 257 257 1. ((( 258 -[[~[~[image:https://wiki.dragino.com/images/thumb/7/70/MQTT_result_2.png/400px-MQTT_result_2.png~|~|alt="MQTT result 2.png" height="190" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_result_2.png]] 259 +[[image:image-20220531142155-36.png]] 260 + 261 + 262 + 259 259 ))) 260 260 261 261 = 5. FAQ = ... ... @@ -266,18 +266,25 @@ 266 266 267 267 For example: for ThingSpeak, a MQTT publish command is: 268 268 269 -{{{mosquitto_pub -h mqtt.thingspeak.com -p 1883 -u dragino -P QZXTAKE88V3S7O2J -i dragino_Client -t channels/200893/publish/B9Z0R25QNVEBKIFY -m "field1=34&field2=89&status=MQTTPUBLISH" 270 -}}} 273 +(% class="box infomessage" %) 274 +((( 275 +**mosquitto_pub -h mqtt.thingspeak.com -p 1883 -u dragino -P QZXTAKE88V3S7O2J -i dragino_Client -t channels/200893/publish/B9Z0R25QNVEBKIFY -m "field1=34&field2=89&status=MQTTPUBLISH"** 276 +))) 271 271 272 272 What now we need to put in the LG01 is how to combine this command. 273 273 274 274 1. LG01 web console -> Sensor -> MQTT 275 275 1. Choose general Server 276 -1. [[ ~[~[image:https://wiki.dragino.com/images/thumb/e/ea/MQTT_Configure1.png/600px-MQTT_Configure1.png~|~|height="367" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Configure1.png]](((282 +1. [[image:image-20220531142342-37.png]]((( 277 277 Refer to your server to fill in. 284 + 285 + 286 + 278 278 ))) 279 -1. [[ ~[~[image:https://wiki.dragino.com/images/0/07/MQTT_Configure2.png~|~|height="93" width="538"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Configure2.png]](((288 +1. [[image:image-20220531142447-38.png]]((( 280 280 Ex:ThingSpeak Server 290 + 291 + 281 281 ))) 282 282 283 283 According to MQTT commands: mosquitto_pub, we need to put ... ... @@ -296,7 +296,7 @@ 296 296 297 297 User can also enable MQTT debug in the LG01 ~-~-> IoT Server settings and run logread in Linux console to see how the mqtt command is compose. below is an example: 298 298 299 -[[ ~[~[image:https://wiki.dragino.com/images/thumb/8/81/MQTT_Configure3.png/600px-MQTT_Configure3.png~|~|height="114" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Configure3.png]]310 +[[image:image-20220531142525-39.png]] 300 300 301 301 MQTT Logread example 302 302 ... ... @@ -305,7 +305,7 @@ 305 305 306 306 LG01 for 4.3.3 version,we have added watchdog feature. In order to avoid the gateway running process will get stuck. So add writing action on every times. 307 307 308 -* [[ ~[~[image:https://wiki.dragino.com/images/thumb/f/f2/Wathcdog.png/400px-Wathcdog.png~|~|height="184" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:Wathcdog.png]](((319 +* [[image:image-20220531142558-40.png]]((( 309 309 Enable Sensor->Micro-Controller settings 310 310 ))) 311 311 * [[~[~[image:https://wiki.dragino.com/images/thumb/8/82/MQTT_Sketch_2.png/400px-MQTT_Sketch_2.png~|~|height="233" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Sketch_2.png]](((
- image-20220531142342-37.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +27.4 KB - Content
- image-20220531142447-38.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +4.7 KB - Content
- image-20220531142525-39.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +69.1 KB - Content
- image-20220531142558-40.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +43.9 KB - Content