1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/sys/include/net/cord/config.h

84 lines
1.9 KiB
C
Raw Normal View History

2017-07-25 15:12:39 +02:00
/*
2018-04-10 14:43:35 +02:00
* Copyright (C) 2017-2018 Freie Universität Berlin
2017-07-25 15:12:39 +02:00
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @defgroup net_cord_config CoRE RD Endpoint and Lookup Client Configuration
* @ingroup net_cord
* @brief Configuration options for CoRE RD endpoints and lookup clients
2017-07-25 15:12:39 +02:00
* @{
*
* @file
* @brief (Default) configuration values for CoRE RD endpoints and lookup
* clients
2017-07-25 15:12:39 +02:00
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef NET_CORD_CONFIG_H
#define NET_CORD_CONFIG_H
2017-07-25 15:12:39 +02:00
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Default lifetime in seconds (the default is 1 day)
*/
#ifndef CORD_LT
#define CORD_LT (86400UL)
#endif
/**
* @brief Delay until the RD client starts to try registering (in seconds)
*/
#ifndef CORD_STARTUP_DELAY
#define CORD_STARTUP_DELAY (3U)
#endif
/**
2018-04-10 14:43:35 +02:00
* @brief Default client update interval (default is 3/4 the lifetime)
*/
#ifndef CORD_UPDATE_INTERVAL
#define CORD_UPDATE_INTERVAL ((CORD_LT / 4) * 3)
#endif
2017-07-25 15:12:39 +02:00
/**
* @name Endpoint ID definition
*
* Per default, the endpoint ID (ep) is generated by concatenation of a user
* defined prefix (CORD_EP_PREFIX) and a locally unique ID (luid) encoded in
2017-07-25 15:12:39 +02:00
* hexadecimal formatting with the given length of characters
* (CORD_EP_SUFFIX_LEN).
2017-07-25 15:12:39 +02:00
*
* Alternatively, the endpoint ID value can be defined at compile time by
* assigning a string value to the CORD_ED macro.
2017-07-25 15:12:39 +02:00
*
* @{
*/
#ifndef CORD_EP
2017-07-25 15:12:39 +02:00
/**
* @brief Number of generated hexadecimal characters added to the ep
*
* @note Must be an even number
2017-07-25 15:12:39 +02:00
*/
#define CORD_EP_SUFFIX_LEN (16)
2017-07-25 15:12:39 +02:00
/**
* @brief Default static prefix used for the generated ep
*/
#define CORD_EP_PREFIX "RIOT-"
2017-07-25 15:12:39 +02:00
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* NET_CORD_CONFIG_H */
2017-07-25 15:12:39 +02:00
/** @} */