Star

Get device parameters using SigFox integration


ThingsBoard PE Feature


Only ThingsBoard Professional Edition supports Platform Integrations feature.

See Get ThingsBoard PE to install ThingsBoard PE.

This tutorial will show how to push downlink messages to devices connected via Sigfox integration when user updates device attribute using ThingsBoard UI

Use case

In this tutorial we will get a shared attribute of specified device using SigFox integration. SigFox backend will be simulated using Postman.

Prerequisites

We assume you have completed the following guides and reviewed the articles listed below:

Model definition

We will operate with device that has name “Thermostat A” which will be automatically created in the process of integration work.

image

Note: a shared attribute of this device has to be created.

Getting started

Creating converters

In order for integration to work, downlink and uplink converters should be created.

image

Uplink converter should look like this:

image

Downlink converter should look like this:

image

Creating integration

Integration should look like this:

image

FieldInput Data
Name New SigFox Integration
Type SigFox
Debug mode False
Uplink data converter New uplink SigFox converter
Downlink data converter New downlink SigFox converter
Base URl http://cloud.thingsboard.io
Enable secrurity False

image

Message flow

In this section, we explain the purpose of each node in this tutorial. There will be one rule chain involved:

The following screenshots show how the above Rule Chains should look like:

image

image

Download and import the attached json file for the To SigFox integration rule chain.

Create Node C as shown on the image above in the root rule chain to forward attribute update messages to the imported rule chain.

The following section shows you how to create this rule chain from scratch.

Create new Rule Chain (To SigFox integration)

Go to Rule Chains -> Add new Rule Chain

Configuration:

image

New Rule Chain is created. Press Edit button and configure Chain.

Adding the required nodes

In this rule chain, you will create 2 nodes as it will be explained in the following sections:

Node A: Check existence filter

image

FieldInput Data
Name Check status field
Message data status

image

FieldInput Data
Name Push to integration
Integration New SigFox Integration

Modify Root Rule Chain

The initial root Rule Chain has been modified by adding the following node:

Node С: Rule Chain

image

The following screenshot shows how the final Root Rule Chain should look like:

image

Conclusion

Now when “status” attribute is updated, integration will send downlink message.

Next steps