epsim.h¶
Interface for the CoRE RD simple registration endpoint.
-
enum
@183¶ - CORD_EPSIM_OK
= 0 - all good
- CORD_EPSIM_NOADDR
= -1 - on address conversion errors
- CORD_EPSIM_ERROR
= -2 - on other errors
- CORD_EPSIM_OK
-
int
cord_epsim_register(void)¶ Initiate the node registration by sending an empty CoAP POST message to the RD server’s /.well-known/core resource.
Return values
- CORD_EPSIM_OK on success
- CORD_EPSIM_NOADDR if conversion of RD address fails
- CORD_EPSIM_ERROR if something goes wrong preparing or sending the initial request
-
void
cord_epsim_run(void)¶ Spawn a new thread that registers the node and updates the registration with all responding RDs using the simple registration process.
Note
Only available with the
cord_epsim_standalonemodule compiled in