Representation of chained list of CoAP options to install.
More...
#include <option.h>
Representation of chained list of CoAP options to install.
... other set up code ...
... other code ...
coap_delete_optlist(optlist_chain);
#define COAP_OBSERVE_ESTABLISH
The value COAP_OBSERVE_ESTABLISH in a GET request indicates a new observe relationship for (sender ad...
coap_optlist_t * coap_new_optlist(uint16_t number, size_t length, const uint8_t *data)
Create a new optlist entry.
int coap_add_optlist_pdu(coap_pdu_t *pdu, coap_optlist_t **options)
The current optlist of optlist_chain is first sorted (as per RFC7272 ordering requirements) and then ...
coap_pdu_t * coap_new_pdu(const struct coap_session_t *session)
Creates a new CoAP PDU.
#define COAP_OPTION_OBSERVE
Representation of chained list of CoAP options to install.
structure for CoAP PDUs token, if any, follows the fixed size header, then options until payload mark...
Definition at line 343 of file option.h.
◆ data
the option data
Definition at line 347 of file option.h.
◆ length
size_t coap_optlist_t::length |
the option value length
Definition at line 346 of file option.h.
◆ next
next entry in the optlist chain
Definition at line 344 of file option.h.
◆ number
uint16_t coap_optlist_t::number |
the option number (no delta coding)
Definition at line 345 of file option.h.
The documentation for this struct was generated from the following file: