Olaf Bergmann
23b58c3d1d
fixed include path
2010-10-18 15:59:22 +02:00
Olaf Bergmann
ea90973530
added config.h.in
2010-10-18 15:56:25 +02:00
Olaf Bergmann
94cc2c4f42
added license information and general project information
2010-10-18 14:53:04 +02:00
Olaf Bergmann
f59c185317
added configure.in and Doxyfile template
2010-10-18 14:15:12 +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
9ff8221ffd
fixed broken bit mask
2010-10-15 10:44:32 +02:00
Olaf Bergmann
f8e4df0d52
moved coap-server to subdirectory examples
2010-10-15 10:43:59 +02:00
Olaf Bergmann
68ae536657
free resources
2010-08-02 18:38:34 +02:00
Olaf Bergmann
32d95f3c9d
print_readable(): added option to request hex-encoding w/o checking is_print()
2010-08-02 18:38:17 +02:00
Olaf Bergmann
aab0046101
handle SIGINT to enable profiling
2010-08-02 18:36:25 +02:00
Olaf Bergmann
5d59673871
fixed Pseudo-FP datatype bug found during plugfest
2010-07-29 18:31:22 +02:00
Olaf Bergmann
ec3714b3c7
bugfix
2010-07-28 08:35:10 +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
7772ee7d33
added /data-sink to well-known URI set
2010-07-27 01:37:12 +02:00
Olaf Bergmann
0872ff2dac
support for POST and DELETE
2010-07-27 01:22:54 +02:00
Olaf Bergmann
d95727c21d
changed API for coap_new_uri() to deal with length/value encoded URIs
2010-07-27 01:22:28 +02:00
Olaf Bergmann
90b112209d
added flag that tells if a resource is writeable
...
write put contents to a file and notify observers
2010-07-26 17:12:06 +02:00
Olaf Bergmann
28df8ea36e
flush stdout after debug output generation
2010-07-26 17:10:29 +02:00
Olaf Bergmann
05d9ebcc4e
flush stdout after debug output generation
2010-07-26 16:18:40 +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
97749a13d8
added option -f for sending payload
2010-07-26 11:20:43 +02:00
Olaf Bergmann
d7f5527003
bugfix: accept empty request URIs
2010-07-26 00:03:10 +02:00
Olaf Bergmann
a360c4633e
added token option
2010-07-24 20:03:35 +02:00
Olaf Bergmann
d90a72d94a
use COAP_MEDIATYPE_ANY for /time
2010-07-23 18:48:45 +02:00
Olaf Bergmann
a322122f50
send RST on protocol violation
2010-07-23 18:46:44 +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
9bb46a47cf
target for building documentation does not work yet
2010-07-23 18:20:20 +02:00
Olaf Bergmann
ec72893af8
do not include authority in request
...
include scheme only if not default
2010-07-23 18:20:03 +02:00
Olaf Bergmann
820fca42dd
target for building documentation does not work yet
2010-07-23 18:19:08 +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
f78099ee41
added option Subscription-Lifetime
2010-07-18 17:24:27 +02:00
Olaf Bergmann
cc70986263
bugfixes from pre-plugfest on 7/16/2010
...
added file-based resources and directory listings
2010-07-18 15:55:44 +02:00
Olaf Bergmann
9f1b087420
changed command-line option for content-type to 't'
...
added command-line option 'm' to provide method to send
2010-07-18 15:54:37 +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
7b313387ab
trying to migrate to strings with length attribute (esp. for URIs)
2010-07-18 15:51:51 +02:00
Olaf Bergmann
b1826e9f8b
new string representation to replace zero-terminated strings in the future
...
this should solve the termination issue in main.c:get_request_uri()
2010-07-17 19:34:19 +02:00
Olaf Bergmann
87817cac1c
played around with block offsets
2010-07-17 18:05:03 +02:00
Olaf Bergmann
621cb36f2a
removed leading / from well-known URI constant
2010-07-17 18:02:57 +02:00
Olaf Bergmann
6af0ad8906
bugfix: NULL pointer dereference in coap_remove_transaction
2010-07-17 18:02:17 +02:00
Olaf Bergmann
779b860909
more resource handling
...
GET responses
2010-07-14 19:13:11 +02:00
Olaf Bergmann
988ee37166
bugfix: strip leading '/' from path
2010-07-14 18:16:36 +02:00
Olaf Bergmann
4ce4ae7fc6
added timestamp to debug output
2010-07-14 15:31:40 +02:00
Olaf Bergmann
0569c6f4a8
also write payload to file when no block option is present
2010-07-13 15:01:28 +02:00
Olaf Bergmann
d2295414c3
exit when data is complete
...
bugfix in handling of block option
write retrieved data to file (currently named "coap.out"
2010-07-12 23:54:01 +02:00
Olaf Bergmann
4fe0a6459f
coap_can_exit(): check if all data is dispatched
...
small fixes in ordering operators
2010-07-12 23:51:50 +02:00
Olaf Bergmann
72500fa297
added coap_get_data() to retrieve PDU payload
2010-07-12 23:49:33 +02:00
Olaf Bergmann
0f2d5b3c34
command line options for block size and content types
2010-07-12 18:40:57 +02:00
Olaf Bergmann
96498de78e
moved some stuff from client implementation to libcoap
2010-07-12 17:37:48 +02:00
Olaf Bergmann
28a14dbb11
use new malloc/free wrapper
2010-07-12 17:18:48 +02:00
Olaf Bergmann
0c2e226e9f
bugfix
2010-07-12 17:18:07 +02:00