Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » [kura 4.1.0] REPLY topic problem(How to create (topic-control-prefix/account_name/requester.client.id/app_id/REPLY/request.id))
[kura 4.1.0] REPLY topic problem [message #1808152] Tue, 18 June 2019 09:12 Go to next message
giuseppe ferro is currently offline giuseppe ferroFriend
Messages: 34
Registered: August 2016
Member
Hi everyone,
I have some problems with control topic response.

I following this MQTT topic namespace guidelines

https://eclipse.github.io/kura/ref/mqtt-namespace.html

In my kura bundle i have 2 publisher and 1 subrisber.
I was able to set up publishers and subscriber.
for my application i try to send a remote control messages published to the control topic:
CTRL/DEVICES/SERIALNUMBER/REALTIME-CMD-V1/PUT/command
(topic.control-prefix/account_name/client_id/app_id/application_topic)
1. a metric containing the : "request.id"
2. a metric containing the : "requester.client.id"
3. a metric containing the : "command"

I set up a subscriber that is subscribed to the same control topic and I am able to parser correctly the message and execute the command without problems.

Now, the next step, is to send back a command response/feedback published to the following control topic:

CTRL/DEVICES/{requester.client.id}/REALTIME-CMD-V1/REPLY/{request.id}
(topic.contro-prefix/account_name/requester.client.id/app_id/REPLY/request.id)

How can I create this REPLY control topic following the same namespace convention?

I was only able to create this topic
CTRL/DEVICES/REALTIME-CMD-V1/REPLY/{requester.client.id}/{request.id}

Could anyone help me?
Thanks in advance
Giuseppe

Re: [kura 4.1.0] REPLY topic problem [message #1808154 is a reply to message #1808152] Tue, 18 June 2019 09:14 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
I believe you'll need to code a new publisher that follows your topic convention.

Best regards,
Matteo
Re: [kura 4.1.0] REPLY topic problem [message #1808158 is a reply to message #1808154] Tue, 18 June 2019 09:47 Go to previous messageGo to next message
giuseppe ferro is currently offline giuseppe ferroFriend
Messages: 34
Registered: August 2016
Member
Sorry but could you explain better?

I have altready 2 pub and 1 sub
1 pub and 1 sub are ok.

the second pub is for create CTRL/DEVICES/{requester.client.id}/REALTIME-CMD-V1/REPLY/{request.id}.

Obviously I added 2 pub and 1 sub to my component.xml (set and unset interfaces in my code)
and added correctly dependency in MANIFEST.

Thanks again
Re: [kura 4.1.0] REPLY topic problem [message #1808213 is a reply to message #1808158] Wed, 19 June 2019 11:47 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
It's what I meant: create a second publisher factory that manages the different topic that you want to use for notification.

It should be the proper approach.

Best regards,
Matteo
Previous Topic:Remote deployment of dp file
Next Topic:Issue installing Kura Eclipse on raspi3
Goto Forum:
  


Current Time: Fri May 03 18:54:23 GMT 2024

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

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

Back to the top