TABLE OF CONTENTS
Description
Thinger.io is a comprehensive Internet of Things (IoT) platform designed to simplify the connection, management, and control of IoT devices. It provides a robust cloud-based environment where developers and companies can easily connect sensors, actuators, and smart devices, collect real-time data, and visualize it through customizable dashboards. Additionally, it offers advanced features such as device provisioning, automated actions, data analytics, and secure access control. With its open-source SDKs and flexible API, Thinger.io empowers users to build scalable IoT solutions for smart homes, industrial automation, agriculture, and other applications efficiently.
This document provides a complete guide and demonstration on how to connect a UG65 gateway to the Thinger.io platform and use a LoRaWAN device as an example.
Note: The AM08 device mentioned here is only for demonstration purposes and does not imply that other types of sensors are not supported. Readers should refer to the steps according to their actual situations.
Requirement
- Gateway Model: UG65 (UG56, UG67 also supported)
Sensor Model: AM308 ( or other type of Milesight Sensors)
The gateway must be connected to the internet
Configuration
Step 1: Register an Account
Visit https://thinger.io/ , click the “Try it Free” button in the top right corner, and then follow the on-screen instructions to complete the registration :
Step 2: Platform Configuration
After completing the registration, go to the login page and enter your username and password:
a) Create a Device Configuration
First, we need to create a demo device on the platform.
You can follow my screenshot for the setup :
Note:
- Make sure to select “HTTP Device (Sigfox, LoRa, cURL)” as the Device Type from the dropdown menu.
- The Device Id must be unique and should not conflict with any existing devices.
- For Device Name, I used am308-lora-lockon, which will be referenced later in this tutorial.
Keep in mind that these settings are provided for demonstration purposes, and you should adjust them based on your actual device and configuration requirements.
Next, refer to the screenshot below to obtain the HTTP-related parameters.
The steps are as follows:
Click on the Overview tab and copy the Target URL and Authorization Header.
These will be used later when configuring the gateway.
At this point, our device has been created. Next, we will proceed to create the data bucket configuration.
b) Create Data Bucket
The data buckets are primarily used to store the data reported by the device.
The specific steps are as follows:
You can configure it according to my screenshot :
Note:
- The Bucket Id must be unique and not duplicate any existing ones.
- In the Data Source dropdown, select “From Device Resource”, then choose the device configuration we just created.
- In the Refresh Mode dropdown, select Stream by Device.
- Keep the other settings as default.
Then, click the “Add Bucket” button to complete the creation.
Now, find the device we just created and link this data bucket to it, the detailed steps are as follows:
As shown in the figure, set “Write Bucket” to the configuration we just created, and then click Save to finish.
At this point, the platform configuration is complete. Next, we will begin configuring the gateway parameters.
Step 3: Gateway Configuration
a) Enable the Embedded NS feature
First, log in to your gateway management interface (refer to <How to Login Web GUI of Milesight Gateway>).
Then operate as shown in the screenshots:
(If it is already enabled, you can skip this step.)
If the status shows Embedded NS is Enabled and Connected, it means the Embedded NS is successfully enabled.
b) Create the Application configuration
Now, create an application configuration and add the HTTP parameters we obtained earlier from the Thinger.io platform.
The operation steps are as follows:
(These steps mainly follow “How to Connect Milesight LoRaWAN Gateway to HTTP(s) Server?” , below are key screenshots from my configuration process for your reference. )
It is important to note the following:
For Type, select HTTP from the dropdown.
The Header Name should match the content shown in the screenshot, and the Value is the parameter we obtained earlier.
For the Uplink Data URL, use the value we retrieved in the previous step.
Finally, click the Save button at the bottom to complete the configuration.
At this point, our application configuration is complete. Next, we will add the demo device.
c) Add the devices to the gateway
Here, the configuration mainly follows “How to Connect LoRaWAN Nodes to Milesight Gateway”.
When adding the device, make sure to select the applicable option as the one we just configured, which is cloud. Be careful not to select the wrong one.
Below are key screenshots from the configuration process for your reference :
The final result after adding all devices is as follows:
Wait for a moment. If it shows online here, it means the device has started reporting data regularly.
At this point, the device's data is being transmitted from the gateway to the Thinger.io platform. Next, we will check the data status.
Step 4: Check the result
Follow the steps shown in the figure.
First, check the status of the device:
As you can see, the status shows online, and the live transmission is receiving data.
Then, navigate to the Data Buckets page to check whether the data has been saved:
We can see that the data has already been received.
At this point, our entire guide is complete. Next, we will create a simple Dashboard to display the data.
Step 5: Create a dashboard example
--END--