Skip to content

Commit

Permalink
fixup! Update sys/include/net/nanocoap.h
Browse files Browse the repository at this point in the history
  • Loading branch information
maribu committed Jan 23, 2025
1 parent 078d532 commit c07acdb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions sys/include/net/nanocoap.h
Original file line number Diff line number Diff line change
Expand Up @@ -2061,9 +2061,9 @@ ssize_t coap_build_hdr(coap_hdr_t *hdr, unsigned type, const void *token,
* will create the reply packet header based on parameters from the request
* (e.g., id, token).
*
* Passing a non-zero @p data_len will ensure the remaining data fits into the
* buffer along with the header. For this validation, data_len must include
* any CoAP Options, the payload marker, as well as the payload proper.
* Passing a non-zero @p max_data_len will ensure the remaining data fits into
* the buffer along with the header. For this validation, @p max_data_len must
* include any CoAP Options, the payload marker, as well as the payload proper.
*
* @param[in] pkt packet to reply to
* @param[in] code reply code (e.g., COAP_CODE_204)
Expand All @@ -2075,7 +2075,8 @@ ssize_t coap_build_hdr(coap_hdr_t *hdr, unsigned type, const void *token,
* No-Response option there is only an empty ACK to be sent back.
* The caller may just continue populating the payload (the space
* was checked to suffice), but may also skip that needless step
* if the returned length is less than the requested @p data_length.
* if the returned length is less than the requested @p
* max_data_length.
*
* @return @p max_data_len + size of the header written in bytes
*
Expand Down

0 comments on commit c07acdb

Please sign in to comment.