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, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -162,34 +162,27 @@ 162 162 163 163 164 164 ))) 165 -1. [[image:image -20220531141026-23.png]](((165 +1. [[~[~[image:https://wiki.dragino.com/images/thumb/3/35/3_4.png/500px-3_4.png~|~|height="180" width="500"~]~]>>url:https://wiki.dragino.com/index.php/File:3_4.png]]((( 166 166 Go to Server check out result.We success to use LG01 to uplink data to ThingSpeak,the mosquitto_pub command is executed in the Linux side, finally, we will have to call mosquitto_pub command with sensor data variable in Arduino side. This is through the process class in Arduino and we will show it in the final sketch. 167 167 ))) 168 168 169 169 * This command: 170 170 171 -(% class="box infomessage" %) 172 -((( 173 -**mosquitto_pub -h mqtt.thingspeak.com -p 1883 -u dragino -P UZ4NGHKJMKS9WR5E -i dragino_Client -t channels/399171/publish/A4NNF6G8G63JOIUV -m "field1=23.5&field2=57.5&status=MQTTPUBLISH"** 174 -))) 171 +{{{mosquitto_pub -h mqtt.thingspeak.com -p 1883 -u dragino -P UZ4NGHKJMKS9WR5E -i dragino_Client -t channels/399171/publish/A4NNF6G8G63JOIUV -m "field1=23.5&field2=57.5&status=MQTTPUBLISH" 172 +}}} 175 175 176 176 * Need replace: 177 177 178 -(% class="box infomessage" %) 179 -((( 180 -**UZ4NGHKJMKS9WR5E ~/~/MQTT API 181 -399171 ~/~/Channel ID 182 -A4NNF6G8G63JOIUV ~/~/Write API Key** 183 -))) 176 +{{{UZ4NGHKJMKS9WR5E //MQTT API 177 +399171 //Channel ID 178 +A4NNF6G8G63JOIUV //Write API Key 179 +}}} 184 184 185 185 186 186 === 4.6.2 Input the command at the console(LG01 new version:4.3.4) === 187 187 188 -1. [[image:image -20220531141150-24.png]](((184 +1. [[~[~[image:https://wiki.dragino.com/images/8/84/3_1.png~|~|height="99" width="93"~]~]>>url:https://wiki.dragino.com/index.php/File:3_1.png]]((( 189 189 Open this Application. 190 - 191 - 192 - 193 193 ))) 194 194 1. [[~[~[image:https://wiki.dragino.com/images/thumb/6/6e/MQTT_Command_2.png/400px-MQTT_Command_2.png~|~|height="76" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Command_2.png]]((( 195 195 Check the settings.
- image-20220531141150-24.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -14.6 KB - Content