CoAP message parser.
More...
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>
#include "http.h"
Go to the source code of this file.
|
enum | coap_type_t { COAP_CON = 0
, COAP_NON = 1
, COAP_ACK = 2
, COAP_RST = 3
} |
| CoAP message type.
|
|
enum | coap_option_t { COAP_URI_PATH = 11
, COAP_URI_QUERY = 15
} |
| CoAP Option number.
|
|
CoAP message parser.
- Date
- 2022-11-30
- Copyright
- Copyright (c) 2022
◆ coap_free_message()
Free the memory allocated for a CoAP message.
- Parameters
-
message | the CoAP message to free |
◆ coap_parse_message()
Parse a CoAP message.
- Parameters
-
data | pointer to the start of the CoAP message |
length | length of the CoAP message, in bytes |
- Returns
- the parsed CoAP message
◆ coap_print_message()
Print a CoAP message.
- Parameters
-
message | the CoAP message to print |