Marian Buschsieweke
68beb52f14
sys/net/nanocoap: add and use coap_get_response_hdr_len()
...
Before, handlers writing blockwise transfer assumed that the response
header length will match the request header length. This is true for
UDP, but not for TCP: The CoAP over TCP header contains a Len field,
that gets extended for larger messages. Since the reply often is indeed
larger than the request, this is indeed often the case for CoAP over
TCP.
Note: Right now, no CoAP over TCP implementation is upstream. However,
getting rid of incorrect assumptions now will make life easier
later on.
2024-11-05 10:46:02 +01:00
Fabian Hüßler
9dfdf2b319
examples/nanocoap_server: 5.03 only for different requests to /separate
2024-05-27 17:58:44 +02:00
benpicco
3f41494e59
Merge pull request #20266 from benpicco/nanocoap_reply_separate
...
nanocoap_sock: implement separate response
2024-05-21 17:45:22 +00:00
Benjamin Valentin
63d5a5aafa
examples/nanocoap_server: add endpoint with separate response
2024-05-21 19:27:57 +02:00
Benjamin Valentin
7e69c13630
nanocoap_sock: implement nanocoap_sock_send_separate()
2024-05-21 19:27:57 +02:00
chrysn
756a384442
makefiles, treewide: Remove MCU variable
2024-02-18 20:46:09 +01:00
Benjamin Valentin
e1f64ffc62
examples/nanocoap_server: use nanocoap_fileserver
2024-01-30 16:59:00 +01:00
Frederik Haxel
314dbf15b9
examples: Use size_t print format specifier
...
Co-authored-by: Marian Buschsieweke <marian.buschsieweke@posteo.net>
2023-12-21 12:02:34 +01:00
Benjamin Valentin
88789454dd
examples/nanocoap_server: enable fileserver for large boards
2023-03-09 14:09:15 +01:00
Benjamin Valentin
13aa272616
examples/nanocoap_server: define CoAP resources as XFA
2023-02-28 20:13:18 +01:00
Benjamin Valentin
4fe202db1e
examples: check return value of coap_build_reply()
...
`coap_build_reply()` may return negative values on error or
0 in the no-response case.
Don't use it to calculate a payload offset without checking first.
2022-11-04 20:00:51 +01:00
Benjamin Valentin
598494f75f
examples: make use of coap_request_ctx_t
2022-07-17 14:32:16 +02:00
Karl Fessel
e03cf052ba
example/nanocoap_server: include kernel_defines.h
2022-02-12 18:30:58 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Karl Fessel
827572d771
examples/nanocoap_server: remove unneed case block
2021-04-27 10:16:15 +02:00
krzysztof-cabaj
68ccf36754
examples/nanocoap_server: fix a buffer overflow bug
2021-04-26 05:52:03 -04:00
Leandro Lanzieri
4052c01e85
net/nanocoap: Move NANOCOAP_URI_MAX to 'CONFIG_' namespace
2020-04-07 17:00:53 +02:00
Benjamin Valentin
d16afe5422
examples: make use of ARRAY_SIZE macro
2019-08-06 19:43:54 +02:00
Ken Bannister
582db9f9fb
examples/nanocoap: use refactored block control function
2019-07-22 05:42:08 -04:00
Leandro Lanzieri
1885e1dd55
examples/nanocoap_server: Add echo resource and fix README
2019-03-17 14:26:11 +01:00
Ken Bannister
7e31ffc424
examples/nanocoap: use descriptive macro name
2019-01-04 19:44:11 -05:00
Ken Bannister
e059da7e0a
example/nanocoap: fix block2 payload
2018-10-29 13:32:25 -04:00
f3b4e44a26
examples/nanocoap: add blockwise block2 example
2018-10-14 14:30:29 +02:00
Ken Bannister
ad826efa7b
nanocoap/example: fix resource order
2018-09-11 05:02:28 -04:00
b42159df21
examples/nanocoap: add blockwise handler example
2018-04-16 12:31:56 +02:00
ed09fec1ef
examples/nanocoap_server: adapt to context ptr in coap_resource_t
2018-02-02 18:54:52 +01:00
729cda62bf
examples/nanocoap_server: adapt to in-tree nanocoap
2017-12-01 12:55:45 +01:00
88a46a95bd
Merge pull request #6136 from aabadie/nanocoap_put
...
examples/nanocoap_server: add resource for coap PUT/POST request
2017-01-18 22:04:05 +01:00
5857e8d24a
examples/nanocoap_server: add coap resource accepting GET and PUT requests in nanocoap example
2017-01-17 18:03:53 +01:00
cfa2beadf5
examples/nanocoap_server: update nanocoap version
2017-01-15 13:22:30 +01:00
b6de3fe29c
examples: nanonet: add comment regarding resource sorting
2016-11-16 14:52:54 +01:00
abb6ac078b
examples: nanocoap_server: initial commit
2016-10-30 06:45:30 +01:00