libcoap  4.2.1
coap_optlist_t Struct Reference

Representation of chained list of CoAP options to install. More...

#include <option.h>

+ Collaboration diagram for coap_optlist_t:

Data Fields

struct coap_optlist_tnext
 next entry in the optlist chain More...
 
uint16_t number
 the option number (no delta coding) More...
 
size_t length
 the option value length More...
 
uint8_tdata
 the option data More...
 

Detailed Description

Representation of chained list of CoAP options to install.

coap_optlist_t *optlist_chain = NULL;
coap_pdu_t *pdu = coap_new_pdu(session);
... other set up code ...
coap_insert_optlist(&optlist_chain, coap_new_optlist(COAP_OPTION_OBSERVE,
coap_add_optlist_pdu(pdu, &optlist_chain);
... other code ...
coap_delete_optlist(optlist_chain);

Definition at line 408 of file option.h.

Field Documentation

◆ data

uint8_t* coap_optlist_t::data

the option data

Definition at line 412 of file option.h.

◆ length

size_t coap_optlist_t::length

the option value length

Definition at line 411 of file option.h.

◆ next

struct coap_optlist_t* coap_optlist_t::next

next entry in the optlist chain

Definition at line 409 of file option.h.

◆ number

uint16_t coap_optlist_t::number

the option number (no delta coding)

Definition at line 410 of file option.h.


The documentation for this struct was generated from the following file: