CREATING A CUMULOCITY CONNECTION
The Cumulocity connector sends the uplinks of your devices to your Cumulocity instance, where you can observe and analyze their data.
The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → Cumulocity.
Before you create the connection, you need a Cumulocity user that is not an SSO account. See Username and Password.
Collecting Expected Information
Parameters required
| UI Field | Description |
|---|---|
| Name | Name of the connection. |
| Hostname | Host name of your Cumulocity instance, for example actility.cumulocity.com. |
| Tenant ID | Tenant ID of your Cumulocity instance, shown when you click your user name in Cumulocity. |
| Username | User name of the Cumulocity user of the connection. |
| Password | Password of the Cumulocity user of the connection. |
| Description | Optional description of the connection. |
Hostname
Hostname is the address you use to connect to your Cumulocity instance, without https://.
For example: actility.cumulocity.com
Tenant ID
To collect your Tenant ID, log in to your Cumulocity instance and click your user name in the top right corner of the page. You can copy the tenant ID from there.

Username and Password
Username and Password are the credentials of a Cumulocity user. Create this user in the administration panel of your Cumulocity instance: the connection uses it to call the Cumulocity API. You cannot use an SSO account.
Creating a Connection With UI
-
In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow.

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

-
Fill in the form:
- Name: a clear name for the connection, for example
My Cumulocity Connection. - Hostname: the host name of your Cumulocity instance, without
https://. - Tenant ID: the tenant ID copied from your Cumulocity user menu.
- Username: the user name of the Cumulocity user of the connection.
- Password: the password of this user.
- 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.
Changing the Settings After Creation
-
In the connection details, click the Edit button next to the setting to change.
-
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 messaging transport link between ThingPark X IoT Flow and the cloud provider. Events and commands from multiple Devices will be sent over this messaging transport link.
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
{
"connectorId": "actility-cumulocity-iot",
"name": "Actility Cumulocity Connection",
"configuration": {
"description": "Cumulocity connection test",
"hostName": "actility.cumulocity.com",
"tenantId": "mytenant",
"username": "myusername",
"password": "mypassword"
}
}
The following table lists the properties applicable to a connection instance.
| Field | Description |
|---|---|
connectorId | Must be set to actility-cumulocity-iot. |
configuration/hostName | Host name of your Cumulocity instance, without https://. |
configuration/tenantId | Tenant ID collected in your Cumulocity instance. |
configuration/username | User name used to connect to your Cumulocity instance. |
configuration/password | Password used to connect to your Cumulocity instance. |
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.
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 Cumulocity.
-
Log in to your Cumulocity instance, at the host name of the connection.

-
Select Devices -> All devices, and check that your device is listed.

-
Click the device to see the measurements received.

Limitations
The drivers of your devices must be compatible with points and ontologies to work with Cumulocity.
Troubleshooting
- The connection is not OPENED: check the host name (without
https://), the tenant ID, the user name and the password. An SSO account cannot be used. - Cumulocity documentation: https://cumulocity.com/docs/