Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 10:19 Go to next message
Praveen Reddy is currently offline Praveen ReddyFriend
Messages: 14
Registered: June 2017
Junior Member
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 38 times)

[Updated on: Wed, 23 August 2017 10:21]

Report message to a moderator

Re: Problem with payload.encoding - when set to Simple JSON [message #1771251 is a reply to message #1771246] Wed, 23 August 2017 11:44 Go to previous messageGo to next message
Praveen Reddy is currently offline Praveen ReddyFriend
Messages: 14
Registered: June 2017
Junior Member
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 11:44 Go to previous message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 263
Registered: July 2015
Location: Italy
Senior Member
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: Fri Sep 21 17:15:37 GMT 2018

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

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

Back to the top