Skip to content

Releases: ssilverman/libCBOR

1.6.1

06 Dec 05:59
Compare
Choose a tag to compare

Changed

  • Only compile EEPROM things if EEPROM.h (and __has_include) exists.

1.6.0

25 Nov 23:22
Compare
Choose a tag to compare

Added

  • Added new expectDefiniteBytes and expectDefiniteText functions to CBOR_parsing. These test for a specific sequence of bytes or text.

Fixed

  • Added a header guard to CBOR_streams.h.

1.5.4

04 Jun 04:02
Compare
Choose a tag to compare

Changed

Fixed

  • Fixed the map part of the bytes_unavailable test in stream.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, and nucleo_f103rb. This is in addition to just compiling and testing on teensy31, huzzah, and featheresp32.
  • 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 in build_flags.

1.5.3

09 Oct 20:41
Compare
Choose a tag to compare

Fixed

  • Compilation for ESP32.

1.5.2

01 May 16:59
Compare
Choose a tag to compare

Added

  • keywords.txt file.

1.5.1

05 Dec 06:59
Compare
Choose a tag to compare

Fixed

  • Removed the C-style comment line from library.json.

1.5.0

05 Dec 05:59
Compare
Choose a tag to compare

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() and readBytes in Reader to only read up to the number of bytes available in the current Bytes or Text data item.
  • Reader::getDataType() is now const.

1.4.1

02 Dec 21:20
Compare
Choose a tag to compare

Changed

  • expectFloatValue and expectDoubleValue now treat zero and negative zero as equal.

1.4.0

01 Dec 16:00
Compare
Choose a tag to compare

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

29 Nov 01:42
Compare
Choose a tag to compare

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.