Olaf Bergmann
1b3aa704e6
Do not restrict writing of block option to Block2, only.
...
Note that coap_write_block_opt() is not very useful for Block1 as
it sets the M bit according to the data length and block number.
2014-03-06 15:43:00 +00:00
Olaf Bergmann
b5fe35646b
Fixed handling of zero-length options in COAP_OPT_BLOCK_LAST macro.
...
The macro did not respect zero-length option values hence a pointer
to the option byte itself was returned. This macro now returns NULL
for zero-length option values. Macros and functions that use this
macro have been updated accordingly. COAP_OPT_BLOCK_NUM has been
replaced by the function coap_opt_block_num().
2014-02-04 17:50:35 +01:00
Thomas Pötsch
a3a60667a6
fixed block-wise transfer for power-of-two sized payloads
2013-01-29 10:41:27 +01:00
Olaf Bergmann
8b8c3d9ac9
more fixes for option iterator
...
Renamed option in struct coap_opt_iterator_t to next_option to detect
errors.
2013-01-21 17:25:36 +01:00
Olaf Bergmann
77e5966c17
bugfix: set M bit correctly (reported by Denis Froschauer)
2012-05-10 18:34:47 +02:00
Olaf Bergmann
c98a084626
configure options to throw out block, observe, and query-filter
2012-04-18 12:11:41 +02:00
Olaf Bergmann
7daf193b53
modified block handling
2012-03-15 14:57:25 +01:00
Olaf Bergmann
9403e5bbeb
improved block support
2012-03-10 02:30:01 +01:00
Olaf Bergmann
6f5d2524a5
support for block transfer
2012-03-10 01:00:03 +01:00