37 #if !defined(CONFIG_UNICOAP_DEBUG_LOGGING) || defined(DOXYGEN)
38 # define CONFIG_UNICOAP_DEBUG_LOGGING 0
52 #if !defined(CONFIG_UNICOAP_OPTIONS_MAX) || defined(DOXYGEN)
53 # define CONFIG_UNICOAP_OPTIONS_MAX (16)
65 #if !defined(CONFIG_UNICOAP_OPTIONS_BUFFER_DEFAULT_CAPACITY) || defined(DOXYGEN)
66 # define CONFIG_UNICOAP_OPTIONS_BUFFER_DEFAULT_CAPACITY (32)
73 #define UNICOAP_HEADER_SIZE_MAX (15)
82 #if !defined(CONFIG_UNICOAP_EXTERNAL_TOKEN_LENGTH_MAX) || defined(DOXYGEN)
83 # define CONFIG_UNICOAP_EXTERNAL_TOKEN_LENGTH_MAX (8)
87 "CONFIG_UNICOAP_EXTERNAL_TOKEN_LENGTH_MAX must not be zero");
94 #if !defined(CONFIG_UNICOAP_GENERATED_TOKEN_LENGTH) || defined(DOXYGEN)
95 # define CONFIG_UNICOAP_GENERATED_TOKEN_LENGTH (2)
99 "CONFIG_UNICOAP_GENERATED_TOKEN_LENGTH must not be zero");
104 #define UNICOAP_ETAG_LENGTH_FIXED_WIDTH 4
119 #define UNICOAP_NSTART (1)
124 #define UNICOAP_DEFAULT_LEISURE (5)
137 #if !defined(CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH) || defined(DOXYGEN)
138 # define CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH (3)
144 #if (CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH == 3)
145 # define UNICOAP_OBS_TICK_EXPONENT (0)
146 #elif (CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH == 2)
147 # define UNICOAP_OBS_TICK_EXPONENT (6)
148 #elif (CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH == 1)
149 # define UNICOAP_OBS_TICK_EXPONENT (14)
151 # error CONFIG_UNICOAP_OBSERVE_VALUE_WIDTH must not exceed 3
POSIX.1-2008 compliant version of the assert macro.
#define static_assert(cond,...)
static_assert for c-version < c11
#define CONFIG_UNICOAP_GENERATED_TOKEN_LENGTH
Length of tokens generated by the unicoap client API.
#define CONFIG_UNICOAP_EXTERNAL_TOKEN_LENGTH_MAX
Maximum length of a token received from a client.
Common macros and compiler attributes/pragmas configuration.