Olaf Bergmann
909cccd05d
Support for response code 7.31 to cancel observation relationships.
...
This new behavior is described in Section 4.6 of draft-ietf-core-observe-12.
The idea is to send a response with code 7.31 and the token to identify
the subscription.
2014-02-25 19:00:10 +01:00
chrysn
205520b601
zero-copy package reception
2013-11-17 16:53:08 +01:00
chrysn
1961caeebc
use lwip pbufs for pdu allocation
...
so far, this only replaces the allocator; it is not used yet for
zero-copy operations.
2013-11-17 16:40:55 +01:00
chrysn
e32a0f3497
add coap_add_option_later function
...
the coap_add_option_later works like coap_add_option, but does not take
data. instead, it allocates the option empty, and returns an address the
application has to fill with data later.
this is especially useful for the etag and block options; the
application can write out its variable data, generate a checksum while
writing, and fill the etag when the data is already written to the pdu.
with the block options, the more flag can be set at the last moment.
2013-11-17 16:30:10 +01:00
Olaf Bergmann
accc094785
notifications and observer removal according to draft-ietf-core-observe-09
2013-07-23 17:33:03 +02:00
Olaf Bergmann
5318781565
option codes updated according to coap-18
2013-07-04 18:45:45 +02: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
3362f90b41
code cleanup
2013-01-15 16:49:31 +01:00
Olaf Bergmann
e68a016b65
payload data
2013-01-11 17:45:12 +01:00
Olaf Bergmann
cd10925056
modified option parser
2013-01-11 11:32:22 +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
8bfc00481a
coap-12: option type numbers, option jumps and length coding
2012-11-20 12:24:15 +01:00
Markus Becker
b00ec19da3
Correct type description for port in comment.
2012-09-27 16:11:45 +02:00
Olaf Bergmann
582e59f107
handling of long option lists
2012-03-20 18:47:46 +01:00
Olaf Bergmann
e440853cf7
removed Max-OFE
2012-03-06 14:09:18 +01:00
Olaf Bergmann
5f4209e04b
observe
2012-01-13 18:43:38 +01:00
Olaf Bergmann
36f2720c9d
nits
2012-01-06 15:28:15 +01:00
Olaf Bergmann
b8c84ba0e4
make COAP_MAX_PDU_SIZE configurable
2011-12-23 17:17:12 +01:00
Olaf Bergmann
2746d0f814
Initial version for Contiki-Server (target minimal-net or mbxxx)
2011-12-07 15:49:43 +01:00
Olaf Bergmann
1611c69222
draft-ietf-core-block-04 (client side, untested)
2011-11-04 22:01:27 +01:00
Olaf Bergmann
6b9c59fc35
Option codes from draft-ietf-core-coap-07
2011-07-28 18:41:36 +02:00
Olaf Bergmann
29be26b536
Response handling
2011-06-16 18:23:09 +02:00
Olaf Bergmann
15fd4ec0de
Started to replace subscribe by generic async support.
2011-06-13 19:01:52 +02:00
Olaf Bergmann
60c7a7a8ee
API improvement.
2011-06-13 02:29:11 +02:00
Olaf Bergmann
887bf74295
Cleanup options stuff, changed .well-known URI to avoid splitting effort.
2011-06-10 18:04:09 +02:00
Olaf Bergmann
852055628f
Improved options processing with coap_opt_iterator_t
2011-06-02 02:40:42 +02:00
Olaf Bergmann
758b7f775e
Applied patches from Markus Becker (thanks!)
...
* 0001-Trailing-whitespace-cleanup.patch
* 0001-Went-back-to-2.65-of-autoconf.patch
* 0002-Fix-compiler-warning-for-str.patch
* added several files to Makefile target .gitignore
2010-11-22 13:01:00 +01:00
Olaf Bergmann
2d25b6f262
changes from draft-ietf-core-coap-03
...
* removed option Uri-Scheme
* added support for Uri-Query
* version number increment (0.07)
2010-10-26 14:40:55 +02:00
Olaf Bergmann
334ee8ec32
* fixed handling of PUT and POST
...
* POST now returns Location header
* check critical options
* added option Accept from draft-bormann-coap-misc-06.txt
coap-client now has option -A to take list of accepted types
2010-10-22 18:17:29 +02:00
Olaf Bergmann
7c8d7f97e2
* check for unknown critical options and reject them
...
* use .well-known/core instead of .well-known/r (see draft coap-02)
2010-10-22 13:06:04 +02:00
Olaf Bergmann
94cc2c4f42
added license information and general project information
2010-10-18 14:53:04 +02:00
Olaf Bergmann
1a403845ca
Made libcoap configurable
...
* moved Makefiles to Makefile.in
* test for tools, headers, libs and compiler features
* generate config.h which is included by coap.h
2010-10-18 12:09:51 +02:00
Olaf Bergmann
7457772ddc
bugfix: forgot to adjust size of transaction id
...
after fixing the tid==0 bug
2010-07-28 00:14:41 +02:00
Olaf Bergmann
f20d5f8eaf
bugfix for transaction id == 0
...
coap_tid_t now is of type int, COAP_INVALID_HASHKEY now is outside the unsigned short scope
coap_send() and coap_send_confirmed() now DO NOT generate transaction ids any more
2010-07-26 16:07:48 +02:00
Olaf Bergmann
72194aa8b9
fixed URI hash function
...
CoAP default URI scheme
prepare for API changes in option handling
2010-07-23 18:22:11 +02:00
Olaf Bergmann
70322a312b
net.c: remove subscriptions when RST was received
...
use length/value encoded strings in coap_uri_t
2010-07-22 18:07:15 +02:00
Olaf Bergmann
eda3d5c696
added COAP_MEDIATYPE_ANY for internal use
...
(goal is to hae more flexibility with resource encoding)
2010-07-18 15:53:01 +02:00
Olaf Bergmann
621cb36f2a
removed leading / from well-known URI constant
2010-07-17 18:02:57 +02:00
Olaf Bergmann
779b860909
more resource handling
...
GET responses
2010-07-14 19:13:11 +02:00
Olaf Bergmann
72500fa297
added coap_get_data() to retrieve PDU payload
2010-07-12 23:49:33 +02:00
Olaf Bergmann
96498de78e
moved some stuff from client implementation to libcoap
2010-07-12 17:37:48 +02:00
Olaf Bergmann
aa409eff46
changes for coap-01
...
added coap_check_option()
2010-07-11 19:59:29 +02:00
Olaf Bergmann
3161470b71
fixed byte order
...
improved debug output
2010-07-08 17:04:42 +02:00
Olaf Bergmann
07ca868a95
code cleanup (removed some GCC extensions from pdu.h)
...
macros for improved handling of coap_opt_t objects
2010-07-05 19:25:57 +02:00
Olaf Bergmann
ca5cb93abf
transaction handling
...
added handling of incoming messages on "user layer"
some code cleanup
2010-07-04 20:48:57 +02:00
Olaf Bergmann
841ede849d
Updated header bits according to draft-ietf-core-coap-01pre5.
...
Basic support for sending, retransmissions.
2010-07-04 03:25:45 +02:00
Olaf Bergmann
f8a768f3ac
Basic CoAP header structure and option encoding
2010-07-02 15:54:18 +02:00