User Manual
www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 51 / 67
9.4.3 Integrate LoRa, Bridge and Curl
Here we will provide a complete example for our system. The hardware set up is as below:
LoRa Gateway LG01: Periodically check if there new commands in IoT Server. If there is new
command, broadcast the command string to its LoRa network. .
LoRa End Node: LoRa Shied + UNO, listening if there are commands in LoRa network. If
there is new command and the node ID match. It will parse and execute the incoming
command.
Above is the set up for this test, the LoRa End Node here is with ID 111, and with relay on D4 pin,
so , and it will look for command: 111041 or 111040 to switch on/off the relay.
The source code used here are:
LoRa Shield + UNO : Client Source Code
LG01 LoRa Gateway: Gateway Source Code
In the source code, there is well explained about the functions and the code. Below is the result
for the testing. We can see the result as below: