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

From version 32.2
edited by Xiaoling
on 2022/05/31 14:18
Change comment: There is no comment for this version
To version 39.1
edited by Xiaoling
on 2022/05/31 14:25
Change comment: Uploaded new attachment "image-20220531142558-40.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -242,15 +242,24 @@
242 242  
243 243  
244 244  )))
245 -1. [[~[~[image:https://wiki.dragino.com/images/thumb/3/3d/MQTT_Sketch3.png/400px-MQTT_Sketch3.png~|~|height="371" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Sketch3.png]](((
245 +1. [[image:image-20220531141927-34.png]](((
246 246  Open Serial monitor.
247 +
248 +
249 +
247 247  )))
248 248  1. Go to IoT Server to check the result.
249 249  1. (((
250 -[[~[~[image:https://wiki.dragino.com/images/thumb/4/43/MQTT_result_1.png/400px-MQTT_result_1.png~|~|alt="MQTT result 1.png" height="181" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_result_1.png]]
253 +[[image:image-20220531142023-35.png]]
254 +
255 +
256 +
251 251  )))
252 252  1. (((
253 -[[~[~[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 +
254 254  )))
255 255  
256 256  = 5. FAQ =
... ... @@ -261,18 +261,25 @@
261 261  
262 262  For example: for ThingSpeak, a MQTT publish command is:
263 263  
264 -{{{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"
265 -}}}
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 +)))
266 266  
267 267  What now we need to put in the LG01 is how to combine this command.
268 268  
269 269  1. LG01 web console -> Sensor -> MQTT
270 270  1. Choose general Server
271 -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]](((
272 272  Refer to your server to fill in.
284 +
285 +
286 +
273 273  )))
274 -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]](((
275 275  Ex:ThingSpeak Server
290 +
291 +
276 276  )))
277 277  
278 278  According to MQTT commands: mosquitto_pub, we need to put
... ... @@ -291,7 +291,7 @@
291 291  
292 292  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:
293 293  
294 -[[~[~[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]]
295 295  
296 296  MQTT Logread example
297 297  
image-20220531141927-34.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +26.8 KB
Content
image-20220531142023-35.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +34.5 KB
Content
image-20220531142155-36.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +42.9 KB
Content
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