Ubidots and Seeed Studio have partnered to create a pre-built integration for SenseCAP LoRaWAN Sensors allowing users to easily forward data from Helium console to Ubidots using Plugins.
This Plugin is optimized to automatically decode Helium JSON schema, parsing items such as gateways metadata so you don’t have to!
An active Ubidots account
An active Helium console account
Table of Contents
1. Creating a SenseCAP+Helium Plugin
The SenseCAP Plugin is a serverless function that exposes a private HTTP Endpoint URL optimized to decode Helium uplink JSON payload. Every time an HTTP POST request is received at such URL, a pre-defined decoding function will be executed.
To create your private HTTP Endpoint URL:
In your Ubidots account, go to the "Devices" tab, click on "Plugins", then click on the "+" icon to create a new Plugin. Search for the SenseCAP + Helium and click on it:
The Plugin instructions will appear. Click on the "Next" icon, then review the input parameters:
Ubidots token: Select the Ubidots token you'd like to use for this Plugin. We recommend creating a new token dedicated to this Plugin only, should you need to increase its rate limit in the future.
3. Finish the process and a new plugin will appear in the Plugins list:
4. Click on the newly-created SenseCAP+Helium Plugin, click on the "Decoder" tab, and copy the "HTTPs Endpoint URL". The structure of the URL is
Also, keep at hand your Ubidots TOKEN, it will be needed in the following steps.
2. Add a SenseCAP sensor node to the Helium console
Before connecting the SenseCAP sensor with the Helium console, please make sure to follow the installation process based on the following documentation:
Step 1: Read the QR of the sensor to get the node's DevEUI and DeviceCode:
SenseCAP sensor device’s AppEUI and AppKey have been flashed into the device by Seeed Studio. To retrieve them, you just need to make an HTTP API request, to the below URL.
Make sure to enter the nodeEui and deviceCode of your own sensor, you will get a response, similar to the one below, containing the AppKey which will be necessary to add the sensor to the Helium console.
Device provision in Helium
Step 1: Go to the Helium console and register your account.
Step 2: Click on Devices and add a new device.
Step 3: Fill out the form as follows:
Name: custom setup
DevEUI: Sensor Device EUI obtain in step 1
AppEUI: 00 00 00 00 00 00 00 00
AppKey: Sensor AppKey obtain in step 1
Step 4: Save the device.
Step 5: Add a new label, then add the label to a device.
Step 6: Click on Integrations → Add New Integration → HTTP.
Step 7: Paste the HTTPs UbiFunction URL into the Endpoint URL.
Step 8: Select POST for the HTTP method.
Step 9: On the HTTP Headers section, add one with key X-Auth-Token and set its value to your Ubidots TOKEN.
Step 10: Give the new integration a name and click on the Add Integration button.
Step 11: Click on Flows.
Step 12: Drag and drop the Label block created in step 5.
Step 13: Drag and drop the Integration block created in steps 6 to 10.
Step 14: Connect the two blocks and save.
3. Editing the Plugin's device type
After creating a SenseCAP+Helium Plugin and clicking on it, you will see a "Decoder" tab, which contains a "Decoding Function" that you can edit at will, in order to decode your data frames. By default, you will see a pre-loaded sample decoder that does the following:
Create RSSI and SNR variables to track gateways receiving signals from your device.
Create a Frame counter, and a Port variable.
Decode payload, extract sensor measurements and battery information packets and send extracted values to Ubidots.
Ubidots will automatically create a device every time a payload from a new device is received. This saves you the need to manually create hundreds or thousands of devices, or copy-and-paste DevEUI's from one platform to the other.
An Ubidots device type will be created and linked to this plugin. This allows you to make batch changes to all of the devices that receive data through this plugin. The device type will be created based on the type of sensor you have connected.
The best way to test the plugin is by making an HTTP request to the Plugin's URL. Just grab the sample JSON payload below, and send it in an HTTP POST request using an HTTP client of your choice (Insomnia or similar). Make sure you add the header "Content-Type:application/JSON":
Sample Helium JSON payload:
"name": "SenseCAP Wireless Light Intensity Sensor",
Send the above payload in an HTTP POST request to the Plugin's URL:
Please note the first time the Plugin is executed, it may take a few seconds to respond. To check the Plugin logs, go to the Plugin, click on the "Logs" section and you should see a list of the latest executions.
5. Feedback and suggestions
Feel free to post questions or suggestions in our community portal, or drop us a line at firstname.lastname@example.org.