How to publish MQTT messages with a Kura component? [message #1836949] |
Tue, 19 January 2021 12:04  |
Eclipse User |
|
|
|
Hi,
this seems to be a very simple question, but I'm stuck with that for a longer time. Also just googling "kura publish MQTT" brings no satisfying results.
I want to publish MQTT messages with an individual JSON format on an individual topic.
In docu is the heater demo bundle as an example publishing application. It uses CloudService / CloudPublisher for publishing the messages.
It can only publish on the topic: <account-name>/<client-id>/heater/data and it can only publish KuraPayload with metrics which are always in the format:
{
"metrics": {
"String name" : "Object Value",
}
}
Is there a way to change topic and metrics using CloudService? Or is CloudService only for communication with a remote Kura server and I must use DataService? But then I'm wondering why there is not a single example using DataService.
Thanks,
Max
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03711 seconds