---
updatedAt: 2025-11-05T20:32:44.000Z
agentTools:
  projectIndex: https://esf.eurotech.com/v6.0.0/llms.txt
---

# User Guide

This guide will illustrate the steps required for configuring an application that uses the new Cloud Connection APIs to publish messages to the Kapua platform.

## Cloud Connection Instantiation and Configuration

To create a new Cloud Connection, open the Cloud Connections section of the Web UI:

![2360](https://files.readme.io/f693864-CloudConnections.png "CloudConnections.png")

Create a new Cloud Connection by clicking on the **New Connection** button and entering a new unique identifier in the **Cloud Connection Service** PID field. The identifier must be a valid `kura.service.pid` and, in case of a Kapua Cloud Connection, it must start with the `org.eclipse.kura.cloud.CloudService-` prefix. A valid identifier can be `org.eclipse.kura.cloud.CloudService-KAPUA`. As an alternative, it is possible to reconfigure the existing `org.eclipse.kura.cloud.CloudService` Cloud Connection.

![2356](https://files.readme.io/6c46953-newCloudConnection.png "newCloudConnection.png")

Configure the `MQTTDataTrasport` service.

![2358](https://files.readme.io/70bc9f9-mqttDataTransport.png "mqttDataTransport.png")

Click on the `MQTTDataTrasport-KAPUA` tab and fill the parameters required for establishing the MQTT connection:

* **Broker-url**
* **Topic Context Account-Name**
* **Username**
* **Password**

Finally, configure the `DataService-KAPUA` service.

![2360](https://files.readme.io/e1cb088-DataService.png "DataService.png")

In order to enable automatic connection, set the `Connect Auto-on-startup` parameter to `true`

## Publisher Instantiation and Configuration

1. Select to the connection to be used from the list.
2. Click on the **New Pub/Sub** button.

![2354](https://files.readme.io/5951b4b-KapuaPublisher.png "KapuaPublisher.png")

3. Select the type of component to be created, from the **Available Publisher/Subscriber factories** drop down list, in order to create a Publisher\
   select the `org.eclipse.kura.cloud.publisher.CloudPublisher` entry.
4. Enter an unique kura.service.pid identifier in the **New Publisher/Subscriber PID** field.
5. Click **Apply**, you should see the publisher configuration

![2356](https://files.readme.io/744abd5-KapuaPublisherConfig.png "KapuaPublisherConfig.png")

6. Select and configure the newly created publisher instance, and then click **Apply**

## Binding an Application to the Publisher

1. Select the application instance configuration
2. Find the configuration entry that represents a Publisher reference.
3. Click on the **Select available targets** link and select the desired Publisher instance to bind to.

![2358](https://files.readme.io/7a6802b-HeaterConfig.png "HeaterConfig.png")

4. Click on **Apply**