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, 2 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -257,6 +257,9 @@ 257 257 ))) 258 258 1. ((( 259 259 [[image:image-20220531142155-36.png]] 260 + 261 + 262 + 260 260 ))) 261 261 262 262 = 5. FAQ = ... ... @@ -267,18 +267,25 @@ 267 267 268 268 For example: for ThingSpeak, a MQTT publish command is: 269 269 270 -{{{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" 271 -}}} 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 +))) 272 272 273 273 What now we need to put in the LG01 is how to combine this command. 274 274 275 275 1. LG01 web console -> Sensor -> MQTT 276 276 1. Choose general Server 277 -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]]((( 278 278 Refer to your server to fill in. 284 + 285 + 286 + 279 279 ))) 280 -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]]((( 281 281 Ex:ThingSpeak Server 290 + 291 + 282 282 ))) 283 283 284 284 According to MQTT commands: mosquitto_pub, we need to put
- 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