Skip to main content



      Home
Home » Eclipse Projects » Kura » Problem with payload.encoding - when set to Simple JSON(Problem with payload.encoding - when set to Simple JSON)
Problem with payload.encoding - when set to Simple JSON [message #1771246] Wed, 23 August 2017 06:19 Go to next message
Eclipse UserFriend
Hi,

I have set 'payload.encoding' as 'Simple JSON' in Kura and sending MQTT message as Json. I subscribed for reply message with expectation of Reply with Json Payload.

But I am getting reply message which is not readable.

Message Sent to Kura: $EDC/account-name/securegateway/CONF-1/GET/configurations

I am attaching reply message, got from Kura.

Please share your thoughts on how to parse the reply message?

Thank you.

With Best Regards,
Praveen.B
  • Attachment: 1.txt
    (Size: 163.95KB, Downloaded 181 times)

[Updated on: Wed, 23 August 2017 06:21] by Moderator

Re: Problem with payload.encoding - when set to Simple JSON [message #1771251 is a reply to message #1771246] Wed, 23 August 2017 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

It is Base64 encoding and I could solve the issue.

Thank you.

With Best Regards,
Praveen.B
Re: Problem with payload.encoding - when set to Simple JSON [message #1771253 is a reply to message #1771246] Wed, 23 August 2017 07:44 Go to previous message
Eclipse UserFriend
Hi,
as you can see, the configurations are placed inside the body and not as metrics in the message.
Referring to this method inside the JSON encoder, the body is encoded BASE64.

So, that's the reason why the data is displayed in that way.

Hope this helps.
Best regards,
Matteo
Previous Topic:Install Kura on custom hardware
Next Topic:Kura on Raspberry Pi setup
Goto Forum:
  


Current Time: Tue Jul 08 00:50:24 EDT 2025

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

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

Back to the top