mongoose/docs/c-api/coap.h/mg_coap_add_option.md
Alexander Alashkin cd778396ff Update mg_coap_add_option doc
PUBLISHED_FROM=cded8f36e2833e7c256ba6cbca0ebf1f6012dee7
2016-11-03 17:20:55 +00:00

460 B

title decl_name symbol_kind signature
mg_coap_add_option() mg_coap_add_option func struct mg_coap_option *mg_coap_add_option(struct mg_coap_message *cm, uint32_t number, char *value, size_t len);

Adds a new option to mg_coap_message structure. Returns pointer to the newly created option. Note: options must be freed by using mg_coap_free_options