Commit Graph
59 Commits
Author SHA1 Message Date
Markus Becker 5415743c30 Add token to request in example client. 2013-02-05 14:57:12 +01:00
Olaf Bergmann 2bfedb9775 Klaus-encoding 2013-01-18 16:44:57 +01:00
Markus Becker 1a9ddbde0c Fixed double option entry for -A. Added examples to the usage string. 2012-09-27 14:09:07 +02:00
Olaf Bergmann a3f8fdaa59 split proxy uri to multiple options when exceeding 270 bytes 2012-07-04 15:58:21 +02:00
Olaf Bergmann aebd41b54a explicit port not supported in proxy option - ID: 3526542 (patch provided by John Sucaet)
do not include Uri-Host when Proxy-Uri is present
2012-07-04 14:03:32 +02:00
Olaf Bergmann 1c9bd4ca4e fixed Memory leak in client.c - ID: 3538646 (patch by John Sucaet) 2012-06-29 11:25:40 +02:00
Olaf Bergmann 3645d6b535 fixed Wrong prototype in client.c - ID: 3538627 (patch by John Sucaet) 2012-06-29 11:22:29 +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 afd4455406 send RST on observe notifications with unknown tokens 2012-03-23 17:48:08 +01:00
Olaf Bergmann a2d6a17e4e clear observation relationship after duration specified with -s 2012-03-23 17:06:17 +01:00
Olaf Bergmann c25ed5f7ac more for block transfer 2012-03-20 18:48:25 +01:00
Olaf Bergmann d716f33953 flush output file after writing received payload 2012-03-16 17:28:44 +01:00
Olaf Bergmann 89548f023d reset timeout when retrieving subsequent blocks 2012-03-15 16:05:52 +01:00
Olaf Bergmann 19287baa92 fixed Uri-Path and Uri-Query for block transfer 2012-03-15 13:02:40 +01:00
Olaf Bergmann f02e459cb2 Revert "bugfix: copy Uri-options, token and host/port from initial request"
sent is empty for subsequent requests, so this approach does not work.
This reverts commit de465025c8.
2012-03-14 18:39:45 +01:00
Olaf Bergmann de465025c8 bugfix: copy Uri-options, token and host/port from initial request 2012-03-14 17:13:06 +01:00
Olaf Bergmann 7235e1effc generate ordered message ids 2012-03-10 16:02:24 +01:00
Olaf Bergmann 9403e5bbeb improved block support 2012-03-10 02:30:01 +01:00
Olaf Bergmann d00ab6af4f added option -e that takes payload as command-line argument 2012-03-09 15:09:21 +01:00
Olaf Bergmann 63bfbfaf89 acknowledge confirmable separate responses 2012-03-08 01:35:03 +01:00
Olaf Bergmann 5a7e5711c5 added -A to usage output 2012-03-07 23:32:09 +01:00
Olaf Bergmann 40de2a0c6b split query into Uri-Query options 2012-03-07 23:28:30 +01:00
Olaf Bergmann 9c33dde944 handling of options -A and -t improved
The options -A and -t take a list of media types as argument (though only the
first is used for -t). Each member of this list now can be the symbolic identifier
listed in section 11.3 of draft-ietf-core-coap-08, an abbreviated token, or
an arbitrary numeric value from 0 to 254.
2012-03-07 23:03:56 +01:00
Olaf Bergmann d5cccebf06 added default timeout and option -B
The main loop is left after a given timeout which defaults to 90 seconds. The new
option -B can be used to modify the timeout value.
2012-03-07 22:31:01 +01:00
Olaf Bergmann cc291dbf03 option -N to send NON-confirmable requests 2012-03-07 21:45:19 +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 298ad4fffa Cleaned debug output (now use -v9 to get all of it) 2011-11-17 09:43:57 +01:00
Olaf Bergmann 1611c69222 draft-ietf-core-block-04 (client side, untested) 2011-11-04 22:01:27 +01:00
Olaf Bergmann d6a193c57d Fixed transaction matching for IPv4 addresses. 2011-08-23 12:14:43 +02:00
Olaf Bergmann f9283b55d5 Send message to port given in URI address (thanks to Jörg Wolf who reported this bug). 2011-07-03 22:36:31 +02:00
Olaf Bergmann 1f6dc64ff5 added option -v to modify log level 2011-06-23 01:00:55 +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 c00eceb8d7 bugfix 2011-06-16 18:29:01 +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 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 540ae6ae99 Added support for split URI paths and queries, percent-encoding. 2011-05-27 17:55: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 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 23fc3b0246 added command line option -P (proxy) 2010-11-05 15:31:22 +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 5d46b03f09 add content-type only if valid 2010-10-23 23:14:59 +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 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 a360c4633e added token option 2010-07-24 20:03:35 +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 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