Skip to main content



      Home
Home » Eclipse Projects » Kura » Mqtt topic in Kura
Mqtt topic in Kura [message #1776858] Wed, 22 November 2017 05:28 Go to next message
Eclipse UserFriend
I know that the topic in Kura works with the following hierarchy:

account/client/prefix/suffix

(4 levels),

but if I want different hierarchy, more levels, ecc., I suppose I need to modify many of the java class in Kura, and not to use the wires and the Gui, where the 4 levels are fix (I hope to understand the logic actually in Kura)

many thanks for any suggestions
Re: Mqtt topic in Kura [message #1776862 is a reply to message #1776858] Wed, 22 November 2017 05:59 Go to previous messageGo to next message
Eclipse UserFriend
I answer, partially, ty myself because I have found an interesting doc.pdf "Eclipse Kura MQTT Namespace Guidelines", with the following note about the 4.th field in the topic:

"A resource_id may be a hierarchical topic, where, for example, "sensors/temp" may identify a temperature sensor and "sensor/hum" a humidity sensor."

that can solve a part of our problems, I continue to read...
Re: Mqtt topic in Kura [message #1776879 is a reply to message #1776862] Wed, 22 November 2017 08:01 Go to previous messageGo to next message
Eclipse UserFriend
However I think we need to intervene for example to modify the payload mqtt, adding something, so we still have to see where to intervene on the classes and whether it is more or less easy or difficult and convenient
Re: Mqtt topic in Kura [message #1776882 is a reply to message #1776879] Wed, 22 November 2017 08:51 Go to previous messageGo to next message
Eclipse UserFriend
And this is VERY important for us to adopt kura as framework for many important projects, with respect to other tools. If someone has experience can write me also via private message thanks
Re: Mqtt topic in Kura [message #1776996 is a reply to message #1776882] Thu, 23 November 2017 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Hi,
I would suggest to have a look here: https://github.com/eclipse/kura/blob/develop/kura/org.eclipse.kura.api/src/main/java/org/eclipse/kura/cloud/CloudClient.java
As you can see the "app-topic" part is completely customisable by the end application. So, it can reach any level of nesting there that your application should be able to manage.

Best regards,
Matteo
Re: Mqtt topic in Kura [message #1777024 is a reply to message #1776996] Thu, 23 November 2017 11:05 Go to previous messageGo to next message
Eclipse UserFriend
thank you very much for the answer

I apologize for the title of the discussion but in reality the part that interests us to personalize is the
payload of the message and the message composition ... and even sending it, if possible not only with Google protocol buffer
Re: Mqtt topic in Kura [message #1777032 is a reply to message #1777024] Thu, 23 November 2017 12:00 Go to previous message
Eclipse UserFriend
Hi,
the payload of the message is decided by the application.
In terms of message encoding, currently the default cloud stack available in Kura supports the Protocol buffer and the simple JSON.
If you need a different one, that obviously, will require the development of a new cloud stack.
Previous Topic:Wires without 'Timer'
Next Topic:mToolkit for oxygen
Goto Forum:
  


Current Time: Thu Jul 17 12:43:07 EDT 2025

Powered by FUDForum. Page generated in 0.10284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top