Releases: ssilverman/libCBOR
Releases · ssilverman/libCBOR
1.6.1
1.6.0
Added
- Added new
expectDefiniteBytes
andexpectDefiniteText
functions toCBOR_parsing
. These test for a specific sequence of bytes or text.
Fixed
- Added a header guard to
CBOR_streams.h
.
1.5.4
Changed
- Tested with ArduinoUnit v3.0.2.
Fixed
- Fixed the map part of the
bytes_unavailable
test instream.inc
. It now ensures that the value part of the map entry is there and not some random value. - Compiles on more platforms (listed using PlatformIO board names):
teensylc
,teensy35
,teensy36
,esp12e
,nucleo_f302r8
,nucleo_f303k8
, andnucleo_f103rb
. This is in addition to just compiling and testing onteensy31
,huzzah
, andfeatheresp32
. - Now making use of PlatformIO's
build_unflags
to ensure that the-fsingle-precision-constant
does not take effect; the compiler was complaining that some float literals were still overflowing, even though-fno-single-precision-constant
was being passed inbuild_flags
.
1.5.3
Fixed
- Compilation for ESP32.
1.5.2
Added
- keywords.txt file.
1.5.1
Fixed
- Removed the C-style comment line from
library.json
.
1.5.0
Added
Reader::bytesAvailable()
function that returns the number of bytes available in the current Bytes or Text data item.
Changed
- Changed the behaviour of
readByte()
andreadBytes
inReader
to only read up to the number of bytes available in the current Bytes or Text data item. Reader::getDataType()
is nowconst
.
1.4.1
Changed
expectFloatValue
andexpectDoubleValue
now treat zero and negative zero as equal.
1.4.0
Added
Reader::getDataType()
function that returns the current data type without advancing the stream.- Parsing helper functions that expect specific values for: unsigned ints, ints, bytes with length, text with length, arrays with length, maps with length, and tags. These join the other
expectXXXValue
functions. - More tests, including ones for detecting negative zero being different than positive zero.
Changed
- The length is now explicitly set to zero when parsing indefinite-length items: bytes, text, arrays, maps.
- Updated docs.
Fixed
- Changed all
Reader
parameters in the parsing helper functions to references instead of copies. Now the internal state is correctly maintained across helper function calls.
1.3.1
Changed
- Moved the tests to a folder named
src_tests
for now. This makes it easier to directly reference this project as an Arduino and PlatformIO library.