CoRE RD Common¶
Shared functionality for CoRE Resource Directory endpoints.
-
char
cord_common_ep
()¶ Export the local endpoint identifier.
Note
Use
sys/include/net/cord/common.h::cord_common_get_ep()
for accessing the endpoint identifier
-
void
cord_common_init
(void)¶ Generate unique endpoint identifier (ep)
-
const char *
cord_common_get_ep
(void)¶ Get the local endpoint identifier.
-
int
cord_common_add_qstring
(coap_pkt_t * pkt)¶ Add selected query string options to a gcoap request.
This function adds:
ep
-> as extracted bysys/include/net/cord/common.h::cord_common_get_ep()
- [optional]
lt
-> if defined by CORD_LT - [optional] ‘d’ -> if defined by CORD_D
Return values
- 0 on success
- <0 on error