Commit Graph
63 Commits
Author SHA1 Message Date
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
Olaf Bergmann b9672e7ca4 make internal implementation of fls() the default as it is missing on my Linux box 2010-07-12 17:17:25 +02:00
Olaf Bergmann 174a86f491 new implementation of ordered lists
wrapper macro for memory handling
new Makefile target .gitignore
2010-07-12 17:15:45 +02:00
Olaf Bergmann 7ea5a04d46 block option 2010-07-12 04:10:14 +02:00
Olaf Bergmann 58d37f4575 client 2010-07-11 19:59:58 +02:00
Olaf Bergmann aa409eff46 changes for coap-01
added coap_check_option()
2010-07-11 19:59:29 +02:00
Olaf Bergmann 42036cd10b remove client functionality (see examples/client.c) 2010-07-11 19:58:32 +02:00
Olaf Bergmann d91feeb790 Carsten\'s encode functions for pseudo-fp 2010-07-11 19:56:58 +02:00
Olaf Bergmann b325dfbdd4 added helper functions for URI handling 2010-07-11 19:56:19 +02:00
Olaf Bergmann 276473f990 set server port
join custom multicast group
handling of command line options
2010-07-08 22:53:51 +02:00
Olaf Bergmann 6b25bd6c1c set server port 2010-07-08 22:53:08 +02:00
Olaf Bergmann b42028a4ee bind server to configurable port
pick arbitrary port if none specified
2010-07-08 22:52:34 +02:00
Olaf Bergmann 4b8fe05413 explicitly set transaction id 2010-07-08 21:25:05 +02:00
Olaf Bergmann f5b5fd6fc6 bugfix 2010-07-08 21:24:21 +02:00
Olaf Bergmann e39c388a54 byte order for transaction id
do not overwrite existing transaction id when sending PDU
2010-07-08 21:23:59 +02:00
Olaf Bergmann 18ef43790e fixed off-by-one bug in show_data 2010-07-08 17:08:50 +02:00
Olaf Bergmann 3161470b71 fixed byte order
improved debug output
2010-07-08 17:04:42 +02:00
Olaf Bergmann 14e626f9a4 use site-local multicast group 2010-07-06 13:58:53 +02:00
Olaf Bergmann d82a7dca77 bugfix: wrong protocol level for hop count change 2010-07-06 13:58:27 +02:00
Olaf Bergmann feabb53c6c added string representation of encoded value to payload of sent pdu 2010-07-06 13:43:02 +02:00
Olaf Bergmann f98eeb45cb multicast example: main process joins group ff02:2001::1 2010-07-06 04:42:51 +02:00
Olaf Bergmann 94620ce617 fixed dist target
increased version number
2010-07-06 04:41:43 +02:00
Olaf Bergmann 0b755142fe added examples subdir with tiny fake sensor 2010-07-06 03:18:43 +02:00