-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Kura's payload format #56
Comments
Hi, One way to do that is to define a custom formatter. Go to Menu -> Window -> Open View -> Formatters and add a new script-based formatter. Then you can edit the sample javascript to do what you need. Once you've got your formatter defined, you can then select it for a connection. Let me know how you get on with that... |
That would be a great addition, yes! |
All sounds possible I think! I haven't used Kura before though, but I'm very happy to help on that. What would help:
|
I was thinking about a Java solution (some sort of plugin maybe?). |
To help me better understand what we are trying to achieve, could you post a sample of how you would use the custom payload encoder/decoder? Could you attach an example of how the message looks like when it is encoded, and how it could look like when decoded? |
I shall do that! Le sam. 30 janv. 2016 01:18, Kamil Baczkowicz notifications@github.com a
|
Hi @kamilfb – is that helpful? https://gist.github.com/kartben/a07c6f5cb1aa3ad6473d |
Yes - thank you @kartben! Have you also got a live feed of Kura's MQTT messages that I could test with? E.g. iot.eclipse.org? |
It's not "live", but there's a few Kura gateways that do post messages on "$EDC/#" root topic once in a while. Now that I think about it, I realize that the payload can also be gzipped, if that's what's configured in the Kura settings. So I guess you have now two ways for testing:
|
You can try it now with mqtt-spy 0.5.0 beta build 4. Just follow the example in the Formatting wiki page to set up a new formatter and the use it. |
Hi Kamil,
I was thinking about implementing a custom payload decoder/encoder to support Kura's payload format.
However I can't fully understand where and how the incoming messages processing happens.
Could you share some hints to point me in the right direction? I saw a "Custom" menù item that is actually disabled, so I think there's a way to "plug" new decoders.
Thanks.
The text was updated successfully, but these errors were encountered: