1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

99 Commits

Author SHA1 Message Date
Martine Lenders
a11f817604 gcoap: rename gcoap_req_send2() to gcoap_req_send() 2019-04-25 13:40:32 +02:00
Martine Lenders
affd115405 gcoap: remove deprecated function gcoap_req_send() 2019-04-25 13:39:50 +02:00
Ken Bannister
f4a4f24197 net/gcoap: update module doc for coap_opt_finish 2019-01-28 13:05:50 -05:00
Ken Bannister
93da7372fd net/gcoap: use coap_opt_finish within gcoap 2019-01-27 08:56:26 -05:00
Ken Bannister
0e1c3ebe50 net/gcoap: make options buf macros configurable 2019-01-16 12:41:06 -05:00
Ken Bannister
03d4230d3a net/gcoap: specify range for token length 2018-12-31 06:13:55 -05:00
Ken Bannister
beae37cf18 net/gcoap: retitle documentation group
Avoids confusion with generic CoAP and capitalization retains order
in documentation.
2018-12-30 10:45:35 -05:00
Ken Bannister
3467994896 net/gcoap: add config macros to config doc group 2018-12-30 10:45:35 -05:00
Ken Bannister
bec94b0b7a net/gcoap: allow NULL path in gcoap_req_init() 2018-11-28 13:20:22 -05:00
Ken Bannister
034c78d51c net/gcoap: move macros to implementation file 2018-11-24 07:09:25 -05:00
Ken Bannister
f0b966d65d net/gcoap: Use nanocoap options API
Observe still uses coap_pkt_t attribute.
2018-11-24 07:09:25 -05:00
Ken Bannister
949eb21116 net/gcoap: fix doc for order of server resources 2018-09-11 04:31:54 -04:00
Pekka Nikander
8f10d65ad5 net/gcoap: Make references to coap_resource_t const in gcoap
A CoAP resource is a primary object between the application
    and CoAP library.  The Library needs the paths, methods,
    and handlers from it, so that it can call the right handler.
    However, it never needs to change any of them.

    The application also needs the resources.  The application
    may want to declare the resources as const, since it may
    want to store them in flash.
2018-07-30 09:00:21 +03:00
Ken Bannister
2c02ed2093 net/gcoap: refine observe re-registration
Fix re-register when using the same token.
Handle edge cases when change token for a resource.
Only set observer and resource on initial registration.
Discuss re-registration in documentation.
2018-06-05 09:23:16 -04:00
smlng
b9ca8f466f gcoap: add asserts for path in gcoap_req_init 2018-05-22 21:28:58 +02:00
smlng
c9e9f72454 gcoap: use const path parameter 2018-05-22 21:28:58 +02:00
Martine Lenders
8a46cf611e gcoap: make message queue size configurable 2018-05-06 16:41:43 +02:00
e1f6a5afd3 net/gcoap: increase stack size by sizeof(coap_pkt_t) 2018-04-22 23:15:16 +02:00
Ken Bannister
c23d85ab3a
Merge pull request #8854 from kb2ma/gcoap/internalize_gcoap_state
net/gcoap: Internalize definition of state struct
2018-03-31 12:15:00 +01:00
Ken Bannister
3da9145018 net/gcoap: Internalize definition of state struct 2018-03-31 06:46:05 -04:00
Lasse Lueder
a456c19898 net/gcoap: improve documentation
add hint to alphabetical ordering of resources
2018-03-29 20:50:12 +02:00
Hauke Petersen
a63f92a7a6 net/gcoap: allow to not define a response handler 2018-03-19 11:56:58 +01:00
Ken Bannister
5e1d3fe0ae net/gcoap: Update doc for confirmable message 2018-01-16 06:37:29 -05:00
Ken Bannister
4062b1f660 net/gcoap: populate confirm request attributes
Also, create resend_bufs array to store PDU for resend.
2018-01-15 23:21:05 -05:00
Ken Bannister
062bc15f00 net/gcoap: Track remote endpoint for all requests 2017-12-18 06:24:58 -05:00
7a636cb8e8 sys/net/gcoap: adapt to in-tree nanocoap 2017-12-01 12:55:45 +01:00
Ken Bannister
70be8cd5bb net/gcoap: Update copyright for 2017 2017-11-10 06:54:38 -05:00
Ken Bannister
0e93566814 net/gcoap: Update request memo struct for a confirmable request 2017-11-10 06:54:38 -05:00
smlng
48327744a2 gcoap: make more parameters configurable 2017-08-22 11:26:31 +02:00
Hauke Petersen
8f577eca4c net/gcoap: add Uri-Query handling for requests 2017-08-08 16:22:05 +02:00
Hauke Petersen
32ab8cf724 net/gcoap: expose creation of resource list to API
Creating the resource list is useful outside the /.well-known/core
handler, e.g. for the registration to resource directories.
2017-08-08 16:00:15 +02:00
Hauke Petersen
2290a9f69b net/gcoap: added remote sock ep to resp handler cb
When receiving a response to a request send our earlier, it is in
some cases essential, to know something about who send the reponse.
This is needed for example when sending requests to multicast
addresses to be able to react to different incoming responses.
2017-07-31 11:11:06 +02:00
Ken Bannister
19ba56b96f net/gcoap: Add server piggybacked ACK response to a CON request 2017-06-21 22:47:08 -04:00
Ken Bannister
aa2f97c80f net/gcoap: Protect update to open requests with mutex. 2017-06-18 06:29:43 -04:00
Ken Bannister
24b21dbfbc net/gcoap: Protect message ID state with atomic updates.
Also changed semantics for storage of message ID, from last ID to next ID.
This change provides idiomatic use of the return value of the atomic
function, without other side effects on gcoap.
2017-06-18 06:16:15 -04:00
Cenk Gündoğan
935292ce44 gcoap: make stack size configurable 2017-06-07 08:20:35 +02:00
Ken Bannister
fac0ae1aa9 net/gcoap: Add table of contents to group documentation. 2017-06-01 12:45:33 -04:00
Hauke Petersen
b104433d4e net/gcoap: improved header documentation
- fixed/unified indention throughout the file
- use same style for @brief blocks
- removed colons from end of brief descriptions
- fixed in and out annotations for function parameters
2017-06-01 11:16:27 +02:00
Hauke Petersen
9d3abe0d12 Merge pull request #7097 from haukepetersen/opt_gcoap_moveimplstatus
net/gcoap: moved implemenation status to gcoap.h
2017-06-01 10:36:20 +02:00
Hauke Petersen
bb90e293a2 net/gcoap: make input parameters const 2017-05-26 16:34:40 +02:00
Martine Lenders
d4693648ba Merge pull request #7095 from kaspar030/add_headerguard_check_script
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
0fcc7d3834 cleanup: apply headerguard script output 2017-05-24 17:54:02 +02:00
Hauke Petersen
bb1d600778 net/gcoap: moved implemenation status to gcoap.h 2017-05-24 09:25:11 +02:00
Ken Bannister
9d37be2729 gcoap: Add server-side Observe registration and notifications. 2017-05-23 17:55:04 -04:00
Hauke Petersen
09119708e9 net/gcoap: fixed/unified alignment in gcoap header 2017-05-22 13:55:20 +02:00
Hauke Petersen
ba5635889c net/gcoap: make gcoap_op_state return count directly 2017-05-22 13:50:59 +02:00
Hauke Petersen
459f6083e9 net/gcoap: fixed typo in header doxygen 2017-05-22 13:47:20 +02:00
Ken Bannister
af1eca907f gcoap: Rebase messaging on sock API 2017-01-20 22:00:25 -05:00
Ken Bannister
fa815993ae gcoap: Move from gnrc directory up to net directory 2017-01-20 16:14:13 -05:00