-
Notifications
You must be signed in to change notification settings - Fork 368
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
Californium compliance to CBoR RFC 7049 #663
Comments
what is to support? |
Does Cf provides functionality of CBOR encoding/decoding OR we need to find an separate library for supporting CBOR encoding/decoding functionality? |
Though payload format is not the scope of californium, it's not provided with californium. |
Any suggestions for the CBOR library? As of now we are evaluating two libraries peteroupc library(https://github.com/peteroupc/CBOR-Java) and c-rack library(https://github.com/c-rack/cbor-java)? |
I personally have no experience with CBOR but I would recommend then to change the title asking for a CBOR java implementation recommendation, or even better, close this issue and create a new one. |
thanks for the valuable inputs. I am closing this.. |
Dear, CoapResponse resp = client.post(payload, MediaTypeRegistry.APPLICATION_JSON); |
Sorry, there is is general misunderstanding in the "responsibilities". Californium offer the transport of payload as bytes, the encoding and decoding of these bytes is the responsibility of the application layer on the top of californium. There are plenty media types registered at iana (see https://www.iana.org/assignments/media-types/media-types.xhtml) and support them all with encoding/decoding doesn't make sense. e.g.:
In the meantime, the ri.se has spent a OSCORE implementation, which uses CBOR on it's own. Therefore that OSCORE module imports
If you want to use the OSCORE module, you may also use that CBOR implementation, if the license of that implementation fits your requirements. General, you free to chose your parser/serializer. Does this answer help you to understand, what californium does for you, and what must be done by yourself? |
Thand for
Thanks for your help,I get it.Have a good day for you~~~ |
your welcome. |
Please let us know compliance of Californium w.r.t RFC 7049 (CBOR support).
The text was updated successfully, but these errors were encountered: