1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

sys/coap: add Size1 option number

This commit is contained in:
Jan Romann 2022-10-25 13:38:11 +02:00
parent 4ea42c0a3c
commit 7c3c466bd4
No known key found for this signature in database
GPG Key ID: 9D6F0ED2C06FDDB0

View File

@ -64,6 +64,19 @@ extern "C" {
#define COAP_OPT_SIZE2 (28)
#define COAP_OPT_PROXY_URI (35)
#define COAP_OPT_PROXY_SCHEME (39)
/**
* @brief Size1 option
*
* Used by clients to give servers an estimate of the total request
* payload size during block-wise server and by servers to indicate
* the maximum acceptable payload size in a 4.13 ("Request Entity
* Too Large") response.
*
* @see [RFC 7252](https://datatracker.ietf.org/doc/html/rfc7252)
* @see [RFC 7959](https://datatracker.ietf.org/doc/html/rfc7959)
* @see [RFC 8613](https://datatracker.ietf.org/doc/html/rfc8613)
*/
#define COAP_OPT_SIZE1 (60)
/**
* @brief suppress CoAP response
* @see [RFC 7968](https://datatracker.ietf.org/doc/html/rfc7967)