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

From version 22.2
edited by Xiaoling
on 2022/05/31 14:09
Change comment: There is no comment for this version
To version 24.1
edited by Xiaoling
on 2022/05/31 14:10
Change comment: Uploaded new attachment "image-20220531141026-23.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -153,9 +153,14 @@
153 153  )))
154 154  1. [[image:image-20220531140915-21.png]](((
155 155  First, we need to make sure the LG01 has internet access. We can log in the SSH and ping an Internet address and see if it get through. As below
156 +
157 +
156 156  )))
157 -1. [[~[~[image:https://wiki.dragino.com/images/thumb/6/63/3_3.png/400px-3_3.png~|~|height="213" width="400"~]~]>>url:https://wiki.dragino.com/index.php/File:3_3.png]](((
159 +1. [[image:image-20220531140955-22.png]](((
158 158  LG01 has built-in Linux tool mosquitto. It is a very powerful tool for http communication. We can use this tool to handle MQTT API call in LG01. Input this command and replace your keys.
161 +
162 +
163 +
159 159  )))
160 160  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]](((
161 161  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.
image-20220531140955-22.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +36.1 KB
Content
image-20220531141026-23.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +22.8 KB
Content