mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-05 02:49:00 +08:00
7f4e2a93d0
PUBLISHED_FROM=73ef8ae768585d3c204e6e022848f49e8f4a8de2
27 lines
795 B
Markdown
27 lines
795 B
Markdown
---
|
|
title: "CoAP API reference"
|
|
symbol_kind: "intro"
|
|
decl_name: "coap.h"
|
|
items:
|
|
- { name: mg_coap_add_option.md }
|
|
- { name: mg_coap_compose.md }
|
|
- { name: mg_coap_free_options.md }
|
|
- { name: mg_coap_parse.md }
|
|
- { name: mg_coap_send_ack.md }
|
|
- { name: mg_coap_send_message.md }
|
|
- { name: mg_set_protocol_coap.md }
|
|
- { name: struct_mg_coap_message.md }
|
|
- { name: struct_mg_coap_option.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) ...
|
|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
|
|
```
|
|
|