Skip to main content
Version: 1.8.5

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 FieldDescription
NameName of the connection.
HostnameHost name of your Cumulocity instance, for example actility.cumulocity.com.
Tenant IDTenant ID of your Cumulocity instance, shown when you click your user name in Cumulocity.
UsernameUser name of the Cumulocity user of the connection.
PasswordPassword of the Cumulocity user of the connection.
DescriptionOptional 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.

Tenant ID in the user menu of Cumulocity

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​

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

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

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

FieldDescription
connectorIdMust be set to actility-cumulocity-iot.
configuration/hostNameHost name of your Cumulocity instance, without https://.
configuration/tenantIdTenant ID collected in your Cumulocity instance.
configuration/usernameUser name used to connect to your Cumulocity instance.
configuration/passwordPassword used to connect to your Cumulocity instance.
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.

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

  2. Log in to your Cumulocity instance, at the host name of the connection. Cumulocity login page

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

  4. Click the device to see the measurements received. Measurements of a device in Cumulocity

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/