Commit Graph
363 Commits
Author SHA1 Message Date
Olaf Bergmann bf3530386b Basic list wrapper to align utlist.h with Contiki's list API.
This file was originally part of tinydtls.
(cherry picked from commit 5db598c45533b5471bb8c8bd6fac8f67b62df80d)
2013-07-22 17:28:04 +02:00
Olaf Bergmann 5318781565 option codes updated according to coap-18 2013-07-04 18:45:45 +02:00
chrysn 1715b80d87 declare the inline function opt_finished static
an `inline int opt_finished` causes GCC to spew this error when used
with -std=gnu99:

libcoap/option.c:165: undefined reference to `opt_finished'

Signed-off-by: Olaf Bergmann <bergmann@tzi.org>
2013-05-03 12:52:05 +02:00
Olaf Bergmann 31c36a777b clean shared lib 2013-04-05 14:44:40 +02:00
Olaf Bergmann 14270f6cea quick hack to create shared library (use configure --with-shared) 2013-04-05 14:42:53 +02:00
Markus Becker 72e6f738c8 Add token to request in example client. 2013-02-05 15:46:47 +01:00
Olaf Bergmann 2045d377ca code cleanup in print_wellknown() 2013-02-05 15:08:57 +01:00
Markus Becker 5415743c30 Add token to request in example client. 2013-02-05 14:57:12 +01:00
Markus Becker 75acc0d03f Add token length to output of coap_show_pdu(). 2013-02-05 14:56:39 +01:00
Olaf Bergmann c007638c1a fixed bug in size-calculation of coap_new_error_response() (applied patch from Thomas Stammeier)
The calculation of required space for textual error phrase did not take into account the one
byte for the payload start marker.
2013-02-04 11:01:13 +01:00
Olaf Bergmann b465bcc692 update 2013-02-01 14:14:22 +01:00
Olaf Bergmann 8eaa930de6 fixed bug #15 (#warn instead of #warning)
file a #warning for gnu preprocessor only.
2013-02-01 14:12:22 +01:00
Olaf Bergmann 81ee38611d applied patch from chrysn to fix bug in .well-known/core generation (missing 2 bytes) 2013-02-01 13:58:11 +01:00
Olaf Bergmann 6a613598c6 removed unused option iterator 2013-02-01 13:54:16 +01:00
Thomas Pötsch a3a60667a6 fixed block-wise transfer for power-of-two sized payloads 2013-01-29 10:41:27 +01:00
Olaf Bergmann b376fccf2d add missing licensing information when creating tar archive 2013-01-24 16:59:26 +01:00
Olaf Bergmann 107f6ce1c3 fixed year in copyright note 2013-01-21 17:27:21 +01:00
Olaf Bergmann 8b8c3d9ac9 more fixes for option iterator
Renamed option in struct coap_opt_iterator_t to next_option to detect
errors.
2013-01-21 17:25:36 +01:00
Olaf Bergmann 7852aa66a5 Merge branch 'klaus-encoding'
Conflicts:
	configure.in
	option.c
2013-01-19 11:05:35 +01:00
Olaf Bergmann 5458909797 Merge branch 'master' of ssh://libcoap.git.sourceforge.net/gitroot/libcoap/libcoap 2013-01-19 10:46:37 +01:00
Olaf Bergmann b186bfe22d bugfix 2013-01-18 17:40:39 +01:00
Olaf Bergmann e8b5527d39 fixed payload creation in GET handler for resource /time 2013-01-18 17:18:34 +01:00
Olaf Bergmann 61521701d5 set token for observe notifications 2013-01-18 17:17:55 +01:00
Olaf Bergmann 2bfedb9775 Klaus-encoding 2013-01-18 16:44:57 +01:00
Olaf Bergmann 5026b5e59a more tests 2013-01-18 16:44:36 +01:00
Olaf Bergmann 54ef9fd83c Klaus-encoding and option iterators 2013-01-18 16:44:19 +01:00
Olaf Bergmann a5c5f75722 added small comment 2013-01-18 16:42:33 +01:00
Olaf Bergmann 118a17cb86 increased COAP_MAX_OPT to 63 (making coap_filter_t eight bytes wide) 2013-01-18 16:40:52 +01:00
Olaf Bergmann 30ef92b638 bugfix in coap_check_option() 2013-01-18 16:39:33 +01:00
Olaf Bergmann 961a0b0e4d check default hash value for '.well-known/core' 2013-01-18 15:20:39 +01:00
Olaf Bergmann 8d8ad5c98a bugfix: iterate through options, pdu->data
Must use result of coap_option_next() instead of iterator members
to iterate through options.

pdu->data is empty when no payload is present.
2013-01-18 15:02:57 +01:00
Olaf Bergmann 48c96cb7a8 bugfix: do not return options with numbers that exceed the filter
The iterator object now distinguishes between "not filtered" (using
COAP_OPT_ALL which is now set to NULL) and an explicit filter. When
filtering is used, only options between 0 and COAP_MAX_OPT can be
filtered from the option set. Use COAP_OPT_ALL for anything beyond
COAP_MAX_OPT.
2013-01-18 13:46:31 +01:00
Olaf Bergmann 6026c35b41 option accessor functions, improved option iterator
Removed any occurrence of option jumps from coap-12,
option iterator:
  - bad bit to track iterator status
  - option now points to the next field, the current
    option is delivered by coap_options_next()
2013-01-18 12:24:47 +01:00
Olaf Bergmann 3e0c8280c9 more tests 2013-01-15 16:51:12 +01:00
Olaf Bergmann 3362f90b41 code cleanup 2013-01-15 16:49:31 +01:00
Olaf Bergmann 205569f274 Token 2013-01-11 17:45:35 +01:00
Olaf Bergmann e68a016b65 payload data 2013-01-11 17:45:12 +01:00
Olaf Bergmann f48ecd9f2d replaced CoAP option Token by new encoding 2013-01-11 17:44:49 +01:00
Olaf Bergmann cd10925056 modified option parser 2013-01-11 11:32:22 +01:00
Olaf Bergmann 019a922918 document known bugs 2013-01-07 17:48:09 +01:00
Olaf Bergmann c6412f2038 Rework of option parser to support "Klaus encoding" (coap-13), unit tests
The subdirectory "tests" now contains a growing set of unit tests for the
libcoap API. To use this, you will need CUnit (see http://cunit.sourceforge.net)
and must configure with the option --with-tests.
2013-01-07 17:37:49 +01:00
Olaf Bergmann 9f31ab3212 bugfix in option length encoding (pointed out by Timm Decker) 2012-12-21 16:21:05 +01:00
Olaf Bergmann 8157c0b43e Merge commit 'c1452c3707af4735ac0e06470c331b566f6e8898' from Thomas Poetsch 2012-12-02 16:34:12 +01:00
Thomas Pötsch c1452c3707 fixed query filter for href attribute with leading "/" 2012-11-22 13:47:55 +01:00
Olaf Bergmann 355a743030 added ChangeLog to dist files 2012-11-20 13:38:09 +01:00
Olaf Bergmann d9eb6dc70e new version number for coap-12 2012-11-20 13:03:49 +01:00
Olaf Bergmann ae4cb93619 debug code cleanup 2012-11-20 13:02:59 +01:00
Olaf Bergmann 624159aa7c bugfix 2012-11-20 12:55:57 +01:00
Olaf Bergmann 8bfc00481a coap-12: option type numbers, option jumps and length coding 2012-11-20 12:24:15 +01:00
Olaf Bergmann 864585b6f0 debug studd removed 2012-11-03 17:23:31 +01:00