User Manual
www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 50 / 67
9.4.2 Try RESTful API call with LG01 Linux command
The command to be used is Execute the Next TalkBack Command, with curl, it is
curl -k "https://api.thingspeak.com/update?api_key=B9Z0R25QNVEBKIFY&field1=40"
Below is the output for the Linux command test:
So we success to use LG01 to get commands (downlink data) from ThingSpeak, the curl command
is executed in the Linux side, finally, we will have to call curl command in Arduino side and fetch
the output , parse the command out of the curl output and send out the command to local LoRa
network. This is through the process class in Arduino and we will show it in the final sketch.