mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-24 11:54:49 +00:00
15 lines
460 B
Markdown
15 lines
460 B
Markdown
---
|
|
title: "mg_coap_add_option()"
|
|
decl_name: "mg_coap_add_option"
|
|
symbol_kind: "func"
|
|
signature: |
|
|
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
|
|
|