Changes for page MQTT Forward Instruction
Last modified by Kilight Cao on 2024/08/31 16:26
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 3 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -20,7 +20,6 @@ 20 20 * LIG16 21 21 * MS14 series if installed with the same firmware. (in this case, the MQTT forward will work , but no LoRa support) 22 22 23 - 24 24 = 2. Firmware Change Log for MQTT feature = 25 25 26 26 ((( ... ... @@ -30,7 +30,6 @@ 30 30 * LG02_LG08-5.3.1580178039 31 31 ** Initiate version 32 32 33 - 34 34 = 3. MQTT forward operating principle = 35 35 36 36 == 3.1 Network Structure == ... ... @@ -58,7 +58,7 @@ 58 58 The data flow works as below diagram. 59 59 ))) 60 60 61 -[[ ~[~[image:https://wiki.dragino.com/images/thumb/2/2a/MQTT_Forward_2.png/600px-MQTT_Forward_2.png~|~|height="355" width="600"~]~]>>url:https://wiki.dragino.com/index.php/File:MQTT_Forward_2.png]]59 +[[image:image-20220527134000-2.png]] 62 62 63 63 ((( 64 64 Upstream path ... ... @@ -80,7 +80,7 @@ 80 80 Below are the data flow for downstream. 81 81 ))) 82 82 83 -[[image: https://wiki.dragino.com/images/thumb/3/3a/MQTT_Forward_3.png/600px-MQTT_Forward_3.png||height="368" width="600"]]81 +[[image:image-20220527134038-3.png]] 84 84 85 85 Downstream path 86 86 ... ... @@ -90,7 +90,9 @@ 90 90 The MQTT publish command use Macro settings to generate flexible upstream payload for MQTT publish. 91 91 92 92 ((( 93 -Currently the (% class="mark" %)**-t (topic)**(%%) and (% class="mark" %)**-m (message)**(%%) support Macros. 91 +Currently the (% style="color:#4f81bd" %)**-t (topic)**(%%) and (% style="color:#4f81bd" %)**-m (message)**(%%) support Macros. 92 + 93 + 94 94 ))) 95 95 96 96 === 3.3.1 -t topic macro === ... ... @@ -101,6 +101,7 @@ 101 101 * USERNAME: User ID (-u) 102 102 * HOSTNAME: Device Hostname 103 103 104 + 104 104 === 3.3.2 -m message macro === 105 105 106 106 * HOSTNAME: Device Hostname ... ... @@ -109,9 +109,10 @@ 109 109 * META: Completely sensor data with time stamp and rssi 110 110 * JSON: Convert META to json format. 111 111 113 + 112 112 === 3.3.3 Example for Macro === 113 113 114 -[[image: https://wiki.dragino.com/images/thumb/c/c7/MQTT_Command_9.png/600px-MQTT_Command_9.png||height="385" width="600"]]116 +[[image:image-20220527134251-4.png]] 115 115 116 116 MQTT Publish configure 117 117 ... ... @@ -122,7 +122,7 @@ 122 122 123 123 When there is a LoRa sensor arrive. it will be store at the /var/iot/channels as below: 124 124 125 -[[image: https://wiki.dragino.com/images/thumb/c/c4/MQTT_Command_20.png/600px-MQTT_Command_20.png||height="325" width="600"]]127 +[[image:image-20220527134332-5.png]] 126 126 127 127 Sensor Data 128 128
- image-20220527134038-3.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +94.2 KB - Content
- image-20220527134251-4.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +35.1 KB - Content
- image-20220527134332-5.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +34.7 KB - Content