... |
... |
@@ -141,15 +141,20 @@ |
141 |
141 |
create iBeacon |
142 |
142 |
|
143 |
143 |
|
144 |
|
-= 3. Configure TTN = |
145 |
145 |
|
146 |
|
-== 3.1 Configure LBT1 to Upload data to TTN == |
|
145 |
+= 3. Configure TTN = |
147 |
147 |
|
|
147 |
+ |
|
148 |
+== 3.1 Configure LBT1 to Upload data to TTN == |
|
149 |
+ |
|
150 |
+ |
148 |
148 |
Please refer the instruction in the [[User Manual>>url:http://www.dragino.com/downloads/index.php?dir=accessories/Bluetooth/BCN01]]. Note the (% style="color:#4f81bd" %)**LBT1 need to set to MOD=3**(%%) here. |
149 |
149 |
|
150 |
150 |
|
151 |
|
-== 3.2 Decoder in TTN == |
152 |
152 |
|
|
155 |
+== 3.2 Decoder in TTN == |
|
156 |
+ |
|
157 |
+ |
153 |
153 |
(% class="box" %) |
154 |
154 |
((( |
155 |
155 |
function Decoder(bytes, port) { |
... |
... |
@@ -231,27 +231,29 @@ |
231 |
231 |
))) |
232 |
232 |
|
233 |
233 |
|
234 |
|
-= 4. Set Up Converter Server = |
235 |
235 |
|
|
240 |
+= 4. Set Up Converter Server = |
|
241 |
+ |
|
242 |
+ |
236 |
236 |
* ((( |
237 |
|
-How to install and run this service on Linux? |
|
244 |
+**How to install and run this service on Linux?** |
238 |
238 |
))) |
239 |
239 |
|
240 |
240 |
((( |
241 |
|
-Step1.Rent a Linux on Amazon cloud or alicloud to the host, and pre install the Linux system (Debian, Ubuntu, CentOS are available for distribution). |
|
248 |
+Step1. Rent a Linux on Amazon cloud or alicloud to the host, and pre install the Linux system (Debian, Ubuntu, CentOS are available for distribution). |
242 |
242 |
))) |
243 |
243 |
|
244 |
244 |
((( |
245 |
|
-Step2.Run the code on the server after compiling. Compilation requires the support of libcurl. First, compile libmqtt in the code, and then compile location. |
|
252 |
+Step2. Run the code on the server after compiling. Compilation requires the support of libcurl. First, compile libmqtt in the code, and then compile location. |
246 |
246 |
))) |
247 |
247 |
|
248 |
248 |
((( |
249 |
|
-System: Debian / Ubuntu |
|
256 |
+System: Debian / Ubuntu |
250 |
250 |
))) |
251 |
251 |
|
252 |
252 |
(% class="box" %) |
253 |
253 |
((( |
254 |
|
-step: |
|
261 |
+**step:** |
255 |
255 |
\\1. sudo apt install libcurl4-dev |
256 |
256 |
\\2. sudo apt install gcc automake autoconf libtool make cmake |
257 |
257 |
\\3. git clone -b master https:~/~/github.com/mikayong/location.git |