This is a library for processing CBOR RFC 7049 data.
Notable features of this library:
- Handles and identifies well-formed and not-well-formed CBOR data.
- Provides utility functions to make it easier to parse data.
- Provides some Stream and Print implementations to make it easy to interface with byte arrays and the EEPROM.
The classes you'll need are in the qindesign::cbor
namespace:
Reader
and Writer
. A complete example of how to use them are in
StructInBytes
.
The main class documentation can be found in src/CBOR.h
. Other documentation
can be found as follows:
- Utility functions:
src/CBOR_utils.h
Stream
andPrint
implementations:src/CBOR_streams.h
- Parsing helpers:
src/CBOR_parsing.h
Not all the files in this project are necessary in an installed library. Only the following files and directories need to be there:
*.md
LICENSE
examples/
keywords.txt
library.json
library.properties
src/
There are tests included in this project that rely on a project called ArduinoUnit.
Note that the code for ArduinoUnit is not included in this library and needs to be downloaded separately.
Code style for this project mostly follows the Google C++ Style Guide.
- Concise Binary Object Representation (CBOR): RFC 7049
- RFC 7049 Errata
- Specification including the errata: spec-with-errata-fixed
Copyright (c) 2017-2019 Shawn Silverman