Last modified by Xiaoling on 2022/09/02 18:11

From version 35.3
edited by Xiaoling
on 2022/05/31 14:22
Change comment: There is no comment for this version
To version 41.1
edited by Xiaoling
on 2022/05/31 14:26
Change comment: Uploaded new attachment "image-20220531142659-42.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -270,18 +270,25 @@
270 270  
271 271  For example: for ThingSpeak, a MQTT publish command is:
272 272  
273 -{{{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"
274 -}}}
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 +)))
275 275  
276 276  What now we need to put in the LG01 is how to combine this command.
277 277  
278 278  1. LG01 web console -> Sensor -> MQTT
279 279  1. Choose general Server
280 -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]](((
281 281  Refer to your server to fill in.
284 +
285 +
286 +
282 282  )))
283 -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]](((
284 284  Ex:ThingSpeak Server
290 +
291 +
285 285  )))
286 286  
287 287  According to MQTT commands: mosquitto_pub, we need to put
... ... @@ -300,7 +300,7 @@
300 300  
301 301  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:
302 302  
303 -[[~[~[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]]
304 304  
305 305  MQTT Logread example
306 306  
... ... @@ -309,11 +309,17 @@
309 309  
310 310  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.
311 311  
312 -* [[~[~[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]](((
313 313  Enable Sensor->Micro-Controller settings
321 +
322 +
323 +
314 314  )))
315 -* [[~[~[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]](((
325 +* [[image:image-20220531142629-41.png]](((
316 316  Open the sketch [[MQTT_Simple_Server>>url:https://github.com/dragino/Arduino-Profile-Examples/tree/master/libraries/Dragino/examples/LoRa/MQTT_Simple_Server]].(Board:Dragino Yun + UNO or LG01/OLG01,Port:Network ports.)and upload.
327 +
328 +
329 +
317 317  )))
318 318  * [[~[~[image:https://wiki.dragino.com/images/2/21/Loop.png~|~|height="181" width="388"~]~]>>url:https://wiki.dragino.com/index.php/File:Loop.png]](((
319 319  Each time the function loops, it uses the watchdog function once.
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
image-20220531142629-41.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +38.2 KB
Content
image-20220531142659-42.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +5.1 KB
Content