Kura Cloud Service Subscribe [message #1764241] |
Sat, 27 May 2017 02:38  |
Eclipse User |
|
|
|
Hello all,
I wanna ask about subscribing data with cloudservice kura, if i publish data to broker then the data will be subscribed with kura with cloudservice, do I need to send the data from the websocket client as a google protobuf data type or I can just send it to the broker as an usual publishing data ?
thanks for helping,
Iqbal
|
|
|
Re: Kura Cloud Service Subscribe [message #1764357 is a reply to message #1764241] |
Mon, 29 May 2017 03:12   |
Eclipse User |
|
|
|
Hi Iqbal,
probably I've not understood your problem, but I'll try to give you some insights anyway.
The default cloudservice factory in Kura 3.0.0 can be instructed to receive Kura Protobuf or simple JSON data. If not in these formats, the result could be that the message received could not be processed and passed correctly to the proper application.
So, all depends on your cloud part, if the broker/rules set in the remote cloud service is able to manage generic messages and translate them into JSON or Kura Payload, you can have another device publishing in any way it wants. Otherwise, all the devices must speak the same language (i.e. Kura Payload or simple JSON for the default cloud service that Kura Provides).
If you strictly need to speak something different, you can always create your custom Cloud Service stack and install it in Kura.
Best regards,
Matteo
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05047 seconds