Skip to main content
Version: 1.8.5

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 FieldDescription
NameName of the connection.
Access TokenAPI token of your Datacake account, in the API section of your profile settings. See Get Your Access Token.
DownlinkAsIdGenerated automatically.
DownlinkAsKeyGenerated automatically.
DescriptionOptional description of the connection.

Get Your Access Token​

The Access Token authenticates the connection on your Datacake account.

  1. Log in to Datacake and open your profile Settings. Open the profile settings in Datacake

  2. Open the API section, and copy your Access Token. Copy the Access Token in Datacake

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 DATACAKE in the list of connectors. Select the DATACAKE connector

  3. 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. Set your Datacake 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.

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 /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 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.

FieldDescription
connectorIdMust be set to actility-http-iot.
configuration/destinationURLMust be set to https://api.datacake.co/integrations/lorawan/actility/.
configuration/headers/AuthorizationToken followed by the Access Token of your Datacake account.
brandMust be set to DATACAKE.
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​

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​

  1. Log in to your Datacake account.

  2. Click the + Add Device button. Add a device in Datacake

  3. 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). Choose LoRaWAN in Datacake

  4. Select your device in the Device Template list, and choose Actility for Network Server. Select the device template and the network server in Datacake

  5. Fill in the DEVEUI and NAME fields. Then, click Next and choose your Plan. Set the DevEUI and the name of the device in Datacake

Displaying Information to Know if It Worked​

  1. Make a device associated with the connection send an uplink. In the connection details, the Metrics section counts the uplinks sent to Datacake.

  2. After a few minutes, click the device in your Datacake device list: its dashboard shows the data received. Dashboard of a device in Datacake

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/