User Manual
www.dragino.com
LoRa Gateway User Manual ---Update:2017-11-07 41 / 67
9. Example: Integrate LoRa with RESTFul API
9.1 What is RESTFul API?
A RESTful API is an application program interface (API) that uses HTTP requests to GET, PUT, POST
and DELETE data.
Many IoT services provide RESTful API as one of the uplink/downlink method for sensor date
communication.
This example will show how to use LG01 to communicate with IoT server via RESTful API, so to
achieve the goal to upload sensor data to IoT server or download commands from IoT server.
9.2 Configure IoT Server
Many servers support RESTful API, the server we use here is ThingSpeak which has an intuitive
chart to show the test result for our test. The method here is general and can be used with other
IoT servers for RESTful connection as well.
To use the server, we need to register an account on Thingspeak. Then create a channel and type
the channel info. As shown below, the Channel ID is the unique ID to store our data in
ThingSpeak.