1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
Martine Lenders
f341947612 cbor: fix off-by-one error 2016-10-24 15:52:05 +02:00
Oleg Hahm
b428979a1d debug: add missing line breaks 2016-09-27 23:38:41 +02:00
Thomas Eichinger
e93fd66dbb sys/cbor: change array initializer from const variable to #define
OS X clang complains "folded to constant array as an extension"
[-Wgnu-folding-constant]
2015-09-30 15:29:32 +02:00
Tobias Markmann
f5418fa666 cbor: add API to encode non null-terminated byte strings 2015-08-06 22:30:44 +02:00
kushalsingh007
390e030f84 Removing the warnings after running static code analyser.
-Changes to fix all the clarifyCalulation warnings.
-Fixes a part of issue number 480
2015-03-10 04:08:43 +05:30
Lotte Steenbrink
1bd60400f0 add parentheses to ENABLE_DEBUG in CBOR_NO_PRINT 2014-12-17 03:03:33 -08:00
René Kijewski
c85610437b sys: use byteorder.h in cbor.c 2014-11-19 00:46:45 +01:00
Hinnerk van Bruinehsen
aca4724447 lint: fix warnings of possible nullPointer dereferences 2014-10-31 01:24:30 +01:00
Ludwig Ortmann
457be31b6f Merge pull request #1616 from krf/fix-warnings
Fix comment
2014-08-27 19:38:27 +02:00
Kevin Funk
554e431746 Fix comments 2014-08-27 11:36:36 +02:00
Ludwig Ortmann
58a41d2ff2 sys/cbor: set isdst to undefined after strptime
CBOR does not specify the daylight saving time adjustment.
2014-08-27 10:25:22 +02:00
Kevin Funk
e8141ca5d8 cbor: CBOR implementation for RIOT-OS
This is a malloc-free implementation of the Concise Binary Object
Representation (CBOR) data format for the RIOT-OS.

This implementation mostly stand-alone, and it should be pretty easy to
port to other platforms. We're only using the C STL and some custom
network-related functionaliy which could be easily replaced by depending
on arpa/inet.h.

The CBOR API is straight-forward to use and provides encoding/decoding
functionality for all major C types, such as:
- int
- uint64_t
- int64_t
- float
- double
- char*
- struct tm
- time_t

It is possible to conditionally compile this module via CFLAGS:
- CBOR_NO_SEMANTIC_TAGGING: All semantic-tagging features removed
- CBOR_NO_CTIME: All ctime related features removed
- CBOR_NO_FLOAT: All floating-point related features removed
- CBOR_NO_PRINT: All features depending on printf removed
2014-08-05 19:49:51 +02:00