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

61 lines
1.3 KiB
C
Raw Normal View History

2017-07-25 15:12:39 +02:00
/*
* Copyright (C) 2017 Freie Universität Berlin
*
* 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_rdcli_config CoAP Resource Directory Client Configuration
* @ingroup net_rdcli
* @{
*
* @file
* @brief
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
*/
#ifndef NET_RDCLI_CONFIG_H
#define NET_RDCLI_CONFIG_H
#include "net/ipv6/addr.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @name Endpoint ID definition
*
* Per default, the endpoint ID (ep) is generated by concatenation of a user
* defined prefix (RDCLI_EP_PREFIX) and a locally unique ID (luid) encoded in
* hexadecimal formatting with the given length of characters
* (RDCLI_EP_SUFFIX_LEN).
*
* Alternatively, the endpoint ID value can be defined at compile time by
* assigning a string value to the RDCLI_ED macro.
*
* @{
*/
#ifndef RDCLI_EP
/**
* @brief Number of generated hexadecimal characters added to the ep
*/
#define RDCLI_EP_SUFFIX_LEN (16)
/**
* @brief Default static prefix used for the generated ep
*/
#define RDCLI_EP_PREFIX "RIOT-"
#endif
/** @} */
#ifdef __cplusplus
}
#endif
#endif /* NET_RDCLI_CONFIG_H */
/** @} */