mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-16 10:29:22 +08:00
12437fd7fe
PUBLISHED_FROM=e9a4e5c7b4a1d03b93a2a79e29de19e60e919929
27 lines
795 B
Markdown
27 lines
795 B
Markdown
---
|
|
title: "CoAP API reference"
|
|
symbol_kind: "intro"
|
|
decl_name: "coap.h"
|
|
items:
|
|
- { name: mg_set_protocol_coap.md }
|
|
- { name: mg_coap_add_option.md }
|
|
- { name: mg_coap_free_options.md }
|
|
- { name: mg_coap_send_message.md }
|
|
- { name: mg_coap_send_ack.md }
|
|
- { name: mg_coap_parse.md }
|
|
- { name: mg_coap_compose.md }
|
|
- { name: struct_mg_coap_option.md }
|
|
- { name: struct_mg_coap_message.md }
|
|
---
|
|
|
|
CoAP message format:
|
|
|
|
```
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
|
|
|Ver| T | TKL | Code | Message ID | Token (if any, TKL bytes) ...
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
|
|
| Options (if any) ... |1 1 1 1 1 1 1 1| Payload (if any) ...
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
|
|
```
|
|
|