The installation of Kura was made locally in the raspberry pi. Kapua was installed locally using a docker container as explained in the official documentation https://www.eclipse.org/kapua/getting-started.php.

The communication between Kura and Kapua works following this tutorial http://www.opensourcerers.org/connecting-kura-to-kapua/. It is necessary to use the publisher example. The communication between Kura and the broker (Mosquitto) that connects with the devices also works independently.

To manage multiple connections (these two connections Kura-Mosquitto, and Kura-Kapua) I have considered three possibilities the first one is to create a bundle that subscribes to a topic of the Mosquitto broker and send that information using Kura wires https://github.com/eclipse/kura/wiki/Subscribing-data-to-in-built-MQTT-Server-and-sending-data-to-Cloud-Platform-(Kapua). The second option is to create a Subscriber and a Publisher and the third one is to create multiple Cloud Connections.

I am working on these solutions but so far nothing has worked.