Internal API for handling CoAP URIs.
More...
Internal API for handling CoAP URIs.
◆ coap_upa_chain_t
◆ coap_check_dots()
| int coap_check_dots |
( |
const uint8_t * |
s, |
|
|
size_t |
len |
|
) |
| |
Checks if path segment s consists of one or two dots.
Hex encoding %2e is also checked.
- Parameters
-
| s | Start of data. |
| len | length of data. |
- Returns
1 if single ., 2 if two .. else 0.
returns 1 if . , 2 if .. else 0.
Definition at line 668 of file coap_uri.c.
◆ coap_delete_upa_chain()
Clean up a UPA chain.
- Parameters
-
| chain | The chain to delete. |
Definition at line 1271 of file coap_uri.c.
◆ coap_map_abbrev_uri_path()
| const char * coap_map_abbrev_uri_path |
( |
coap_upa_chain_t * |
chain, |
|
|
uint32_t |
value |
|
) |
| |
Determine the expanded Uri-Path-Abbrev option value.
- Parameters
-
| chain | Chain holding the information. |
| value | The Uri-Path-Abbrev numeric value |
- Returns
- The expanded textual path or
NULL if not found.
Definition at line 1154 of file coap_uri.c.
◆ coap_map_uri_path_abbrev()
| int coap_map_uri_path_abbrev |
( |
coap_upa_chain_t * |
chain, |
|
|
const char * |
path, |
|
|
size_t |
length, |
|
|
uint32_t * |
value |
|
) |
| |
◆ coap_replace_percents()
replace any % hex definitions with the actual character.
- Parameters
-
| optlist | The optlist entry to modify if % hex definitions. |
Definition at line 825 of file coap_uri.c.
◆ coap_upa_client_fallback_chain
◆ coap_upa_server_mapping_chain
◆ coap_uri_scheme