CREATING A DATACAKE CONNECTION
Available since ThingPark X IoT Flow 1.7.1.
The DATACAKE connector sends the uplinks of your devices to Datacake, a low-code IoT platform where you build dashboards and applications for your devices.
The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → Datacake.
Before you create the connection, you need a Datacake account and its Access Token.
Collecting Expected Information
Parameters required
| UI Field | Description |
|---|---|
| Name | Name of the connection. |
| Access Token | API token of your Datacake account, in the API section of your profile settings. See Get Your Access Token. |
| DownlinkAsId | Generated automatically. |
| DownlinkAsKey | Generated automatically. |
| Description | Optional description of the connection. |
Get Your Access Token
The Access Token authenticates the connection on your Datacake account.
-
Log in to Datacake and open your profile Settings.

-
Open the API section, and copy your Access Token.

Creating a Connection With UI
-
In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow.

-
In ThingPark X IoT Flow, click DATACAKE in the list of connectors.

-
Fill in the form:
- Name: a clear name for the connection, for example
My Datacake Connection. - Access Token: the Access Token copied from Datacake.
- DownlinkAsId: generated automatically, keep it as it is.
- DownlinkAsKey: generated automatically, keep it as it is.
- Description: optional.

- Name: a clear name for the connection, for example
-
Click Create. A notification confirms that the connection has been created, and the connection details open.
-
In the connection details, check that the connection is OPENED (see Connection States).
Parameters marked with * are mandatory.
Creating a Connection With API
The creation of a connection establishes a messaging transport link to Datacake.
To do this, you need to use the Connections group resource:
POST /connectionsto create a new Connection instancePUT /connectionsto update a Connection instanceDELETE /connectionsto delete a Connection instance
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 Datacake",
"connectorId": "actility-http-iot",
"configuration": {
"destinationURL": "https://api.datacake.co/integrations/lorawan/actility/",
"headers": {
"Authorization": "Token {YOUR-ACCESS-TOKEN}"
}
},
"brand": "DATACAKE"
}
The following table lists the properties applicable to a connection instance.
| Field | Description |
|---|---|
connectorId | Must be set to actility-http-iot. |
configuration/destinationURL | Must be set to https://api.datacake.co/integrations/lorawan/actility/. |
configuration/headers/Authorization | Token followed by the Access Token of your Datacake account. |
brand | Must be set to DATACAKE. |
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
Each device must be associated with the connection in ThingPark Enterprise, and added in Datacake with the same DevEUI.
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.
Adding Your Devices in Datacake
-
Log in to your Datacake account.
-
Click the + Add Device button.

-
Choose LoRaWAN, and select New Product from template. If your device model does not appear, you can create a New product (see this link for more information).

-
Select your device in the Device Template list, and choose Actility for Network Server.

-
Fill in the DEVEUI and NAME fields. Then, click Next and choose your Plan.

Displaying Information to Know if It Worked
-
Make a device associated with the connection send an uplink. In the connection details, the Metrics section counts the uplinks sent to Datacake.
-
After a few minutes, click the device in your Datacake device list: its dashboard shows the data received.

Limitations
Limitations depend on your Datacake account plan.
Troubleshooting
- No data in Datacake: check that the Access Token is still valid, that the device is associated with the connection in ThingPark Enterprise, and that the DevEUI and the Network Server (Actility) are correct in Datacake.
- Datacake documentation: https://docs.datacake.de/