mongoose/docs/c-api/coap.h/mg_coap_add_option.md

14 lines
399 B
Markdown
Raw Normal View History

---
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);
---
Add new option to mg_coap_message structure.
Returns pointer to the newly created option.