Skip to main content
Version: 1.8.5

CREATING A WIDGELIX CONNECTION

Available since ThingPark X IoT Flow 1.7.13.

The Widgelix connector sends the uplinks of your devices to your Widgelix account. Widgelix can send downlinks back to the devices: see Downlink Support.

The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → Widgelix.

You need a Widgelix account before you create the connection.

Collecting Expected Information​

Parameters required

UI FieldDescription
NameName of the connection.
Widgelix keyAccess Token generated on the connectivity of a device in your Widgelix account. See Widgelix key.
DescriptionOptional description of the connection.

Widgelix key​

The Widgelix key is the Access Token generated on the connectivity associated to a device in Widgelix. See the Widgelix documentation about the connectivity. Widgelix Access Token

Creating a Connection With UI​

  1. In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow. Add a ThingPark X IoT Flow connection in ThingPark Enterprise

  2. In ThingPark X IoT Flow, click Widgelix in the list of connectors. Select the Widgelix connector

  3. Fill in the form:

    • Name: a clear name for the connection, for example My Widgelix Connection.
    • Widgelix key: the Access Token copied from the connectivity of the device in Widgelix.
    • Description: optional. Set your Widgelix connection
  4. Click Create. A notification confirms that the connection has been created, and the connection details open.

  5. In the connection details, check that the connection is OPENED (see Connection States).

Note

Parameters marked with * are mandatory.

Changing the Settings After Creation​

You can change settings such as the name of the connection or the Widgelix key after the creation of the connection.

  1. In the connection details, click the Edit button next to the setting to change.

  2. Enter the new value and click the Confirm button, then confirm the update.

A notification confirms that the setting is updated.

Creating a Connection With API​

The creation of a connection establishes a unidirectional messaging transport link to Widgelix. To do this, you need to use the Connections group resource:

  • POST /connections to create a new Connection instance
  • PUT /connections to update a Connection instance
  • DELETE /connections to delete a Connection instance
Note

We follow the REST-full API pattern, when updating configuration properties for a connection resource. Thus, you must also provide the whole configuration again.

Example for creation of a new connection instance:

POST /connections
{
"name":"Actility To Widgelix",
"connectorId":"actility-http-iot",
"configuration": {
"description": "My first Widgelix connection.",
"destinationURL":"https://app.widgelix.com/v1/input-node/actility",
"headers":{
"Authorization": "Bearer {YOUR-WIDGELIX-KEY}"
}
},
"brand":"WIDGELIX"
}

The following table lists the properties applicable to a connection instance.

FieldDescription
connectorIdMust be set to actility-http-iot for the Widgelix platform.
configuration/descriptionDescription of the connection.
configuration/destinationURLMust be set to https://app.widgelix.com/v1/input-node/actility.
configuration/headersSet of key-values. The only mandatory key is Authorization, with Bearer followed by your Widgelix key as value.
brandMust be set to WIDGELIX.
Important note

All properties are not present in this example. You can check the rest of these properties in the common parameters section.

Associating Devices With the Connection​

In ThingPark Enterprise, open Devices, select a device, and add the connection to the Connections of the device. You can also select the connection when you create a device, or for many devices at once with a CSV file in Devices -> Bulk Operations.

Widgelix manages the downlinks. Set them up in the connectivity of the device in Widgelix, with the downlink URL of the connection: the connection details give this URL in their information banner. Downlink URL in the Widgelix connectivity

Displaying Information to Know if It Worked​

  1. Connect to your Widgelix account.

  2. Go to the Device Types section and create the type of your device. See the Widgelix documentation for details. Widgelix device types

  3. Go to the Devices section and click the device you want to monitor. Widgelix devices

  4. Go to the Settings tab. In the Report section, select a field and extract a report. The Excel report contains the data received from the device. Widgelix device settings Widgelix device report

Limitations​

There is no known limitation of the Widgelix connector.

Troubleshooting​

There is no known issue.