This is Part I of a two parts tutorial covering the integration of Beebotte with Sigfox IoT network.
In this tutorial, we will show how Beebotte can be connected to Sigfox platform
to collect sensor data and present it in a visual dashboard. In Part II, we will show how to use Atlas
, Sigfox's Geolocation service, to track the location of a device with Beebotte.
This tutorial assumes that you have successfully registered
to Beebotte and obtained your API and Secret keys
.
Tutorial contents:
We will use an Arduino MKRFOX1200
, a powerful board with Sigfox connectivity. We will use a DHT11 humidity and temperature sensor to periodically send sensor data to Sigfox.
We assume here that you already associated your Sigfox capable device to Sigfox network.
In order to receive data from Sigfox, we need to create a Channel
with two resources for humidity and temperature.
In your account home page, click on Create New
and follow the instructions to create your channel.
Now your Beebotte account is ready to receive data. Copy the channel token
, we will use it when configuring Sigfox to forward data to this channel.
Now let's move to Sigfox backend.
New
then select Custom Callback
Configure the callback as follows:
Data
- Uplink
URL
https://api.beebotte.com/v1/integration/sigfox/data
humid::float:32:little-endian temp::float:32:little-endian
POST
X-Auth-Token
header and set its value to an IAM Token
with data write access. If you have only one device under the device type, you can use the Channel Token
.application/json
resources
must match those of the corresponding Beebotte channel.{ "device": "{device}", "time": {time}, "resources": { "humidity": {customData#humid}, "temperature": {customData#temp} } }
Congratulations!!! Your Sigfox account is now connected to Beebotte. When your device sends a message on Sigfox network, you will receive it on your Beebotte Channel.
Lets create a dashboard now to visualize received data.
In your account page, goto My Dashboards
and click Create Dashboard
; enter a friendly name and a short description of your dashboard then add 2 Attribute
Widgets and 1 Multiline
widgets. For every widget, indicate the channels and resources where data will be read from. Voilà.
In this tutorial we learned how to connect Beebotte to Sigfox network backend. We configured a data callback to forward messages received on Sigfox network to Beebotte channels. We then created a dashboard to visualize collected data in different graphical widgets.
In Part II, we will use Sigfox Geolocation
service to track the location of the device.