Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support for MessagePack #663

Closed
Matheus-Garbelini opened this issue Jan 11, 2018 · 2 comments
Closed

Support for MessagePack #663

Matheus-Garbelini opened this issue Jan 11, 2018 · 2 comments

Comments

@Matheus-Garbelini
Copy link

Matheus-Garbelini commented Jan 11, 2018

Hello, I use a lot JSON Arduino Library and would like to know if it's possible to modify manually the Deserializer and Serializer to support MessagePack (kinda of binary JSON). Currently, the MessagePack library for Arduino is very hard and not intuitive to use.

As Message Pack contains the same structure as JSON, but with specific bytes to indicate what comes next (float, object, array and so on), I was trying to understand how Deserializer works when decoding strings to float, integer, boolean, etc.

Do you think is viable to manually modify the Deserializer to recognize a Message Pack structure by modifying the existing functions to "think" it's decoding JSON, but instead is decoding Messa Pack?
(I could just get a message in MessagePack and Serialize it to JSON and then apply this library but that would be too inefficient.)
Thanks.

PS: The Serializer I think would be a lot easier to override the existing function to write MessagePack syntax as brackets and commas can be replaced with specific bytes.

@bblanchon
Copy link
Owner

Hi,

Support for MessagePack is definitely on the roadmap (see #358).
However, I need to change the API before, so it will be in 6.x.
I'm currently busy adding the very last changes to 5.x, so I cannot give you an ETA.

I'm sorry, I don't have any quick-fix solution.

Regards,
Benoit

@Matheus-Garbelini
Copy link
Author

@bblanchon thank you, in the meantime, I will try to get something running.

Repository owner locked and limited conversation to collaborators Sep 21, 2018
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

2 participants