-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sys/net/nanocoap: improve coap_build_reply
- The responsibility for handling matching CoAP No-Response Options has been split: - `coap_build_reply()` only needs to report this and return `-ECANCLED` - `coap_handle_req()` does generate the empty ACK is needed. ==> As a result, writing CoAP request handlers correctly becomes a lost easier. Correct error handling to be present is now sufficient for correct handling of No-Response options. ==> This change is backward compatible with existing code. - The API doc has been cleaned up and straightened Co-authored-by: mguetschow <[email protected]>
- Loading branch information
1 parent
f6b8ff7
commit d1da109
Showing
2 changed files
with
66 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters