Skip to content
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

Parsing data #71

Closed
arauko9 opened this issue Aug 29, 2018 · 2 comments
Closed

Parsing data #71

arauko9 opened this issue Aug 29, 2018 · 2 comments
Labels

Comments

@arauko9
Copy link

arauko9 commented Aug 29, 2018

Hi,

I'm trying to parse CBOR data and get the values of each field. I receive a payload from a client and already have the entire CBOR. I tried following the examples in https://libcbor.readthedocs.io/en/v0.5.0/using.html and https://libcbor.readthedocs.io/en/v0.5.0/streaming/decoding.html, but does not work. Is there an example of data parsing, getting the data from each field of the cbor?

Thank you

@PJK
Copy link
Owner

PJK commented Sep 3, 2018

Hi @arauko9, could you please provide a concrete example or code snippet?

Also, https://github.com/PJK/libcbor/blob/master/examples/readfile.c shows how to read some binary CBOR and print it out for debugging purposes, that should get you started.

@PJK PJK added the question label Sep 3, 2018
@arauko9
Copy link
Author

arauko9 commented Sep 4, 2018

Thanks, I already solve it thanks to the examples

@arauko9 arauko9 closed this as completed Sep 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants