Olaf Bergmann
2af20755eb
fixed Observe counter
2012-06-07 15:31:49 +02:00
Olaf Bergmann
48bbed7aab
removed auto-generated attribute "obs"
2012-06-07 15:16:31 +02:00
Olaf Bergmann
e35a1216f8
re-apply fix for timer calculation
2012-06-07 15:12:44 +02:00
Thomas Poetsch
695f04a5f9
add observe to example server
2012-06-07 12:24:21 +02:00
Olaf Bergmann
abf33c87f9
fixed bug #3526909 (Wrong unit conversion) pointed out by jsucaet
...
Applied patch provided by jsucaet.
2012-05-29 19:54:36 +02:00
Olaf Bergmann
28a6d45cde
fixed bug #3524612 (Double free error when coap_send returns COAP_INVALID_TID)
...
From jsucaet's error description (Credits to Marc Haesen for revealing this bug):
The intent of the current code of coap_send is to release the allocated
memory upon success and not to release when an error has occured. However
this is broken (returning from coap_send with an error and a deallocated
pdu ptr is possible).
In the patch, I propose to let the calling function (of coap_send) be
responsible for free'ing the allocated pointer.
2012-05-29 19:41:22 +02:00
Olaf Bergmann
3712bcf30a
handler for /async (generates separate responses)
2012-03-08 01:38:46 +01:00
Olaf Bergmann
8543ef7c4f
fixes for new API
...
Caution: this code is not yet tested thoroughly
2012-03-07 20:16:22 +01:00
Olaf Bergmann
8dcaf0f917
More support for asynchronous transactions ('separate responses')
2011-06-23 18:49:09 +02:00
Olaf Bergmann
60d68d7d62
fixed data pointer in coap_read()
...
some minor bugfixes
example for separate responses (server side only)
2011-06-22 18:07:50 +02:00
Olaf Bergmann
7876566085
removed flags that are not supported on some platforms and seem not to be required here
2011-06-17 11:20:35 +02:00
Olaf Bergmann
8a0c7a8c76
Aligned server and client to new API, stripped down server
...
tiny.c is out of date, though
2011-06-16 18:25:46 +02:00
Olaf Bergmann
15fd4ec0de
Started to replace subscribe by generic async support.
2011-06-13 19:01:52 +02:00
Olaf Bergmann
3358f2901d
Fixed license info.
...
Options iterator.
Address abstraction to allow IPv4 addresses.
more changes for draft-ietf-core-coap-06.
2011-06-02 02:43:59 +02:00
Olaf Bergmann
38429f7541
API change: Pass local interface address to coap_new_context.
...
Changed library numbering to better reflect API changes.
2011-01-10 16:59:45 +01:00
Olaf Bergmann
d9f8b5dbb8
fixed wrong usage message
2010-11-24 14:42:01 +01: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
56c3f7868c
better token handling
...
return 200 if data-sink is empty
2010-11-05 13:56:12 +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
aa7eaad6d7
dynamic creation of link set for .well-known/core
2010-10-23 23:19:27 +02:00
Olaf Bergmann
193934b6f8
added support for Etag and Max-age
...
improved resource handling in example server
2010-10-23 18:59:20 +02:00
Olaf Bergmann
756cefee23
improved server salutation
2010-10-22 18:29:40 +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
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
f8e4df0d52
moved coap-server to subdirectory examples
2010-10-15 10:43:59 +02:00