Loading...
Searching...
No Matches
epsim.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2017-2018 Freie Universität Berlin
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
9#pragma once
10
29
30#include "net/sock/udp.h"
31
32#ifdef __cplusplus
33extern "C" {
34#endif
35
39enum {
43};
44
59
68
69#ifdef __cplusplus
70}
71#endif
72
int cord_epsim_state(void)
Get the status of the latest registration procedure.
int cord_epsim_register(const sock_udp_ep_t *remote)
Initiate the node registration by sending an empty CoAP POST message to the RD server's /....
@ CORD_EPSIM_ERROR
on failing to send POST request
Definition epsim.h:41
@ CORD_EPSIM_OK
all good
Definition epsim.h:40
@ CORD_EPSIM_BUSY
endpoint registration is in progress
Definition epsim.h:42
struct _sock_tl_ep sock_udp_ep_t
An end point for a UDP sock object.
Definition udp.h:293
UDP sock definitions.