Merge pull request #10678 from kb2ma/nanocoap/doc_config_group
net/nanocoap: allow user to configure macros
This commit is contained in:
commit
f475f1cc18
@ -178,19 +178,39 @@ extern "C" {
|
|||||||
#define COAP_FORMAT_NONE (UINT16_MAX)
|
#define COAP_FORMAT_NONE (UINT16_MAX)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Nanocoap specific maximum values
|
* @defgroup net_nanocoap_conf Nanocoap compile configurations
|
||||||
|
* @ingroup net_nanocoap
|
||||||
|
* @ingroup config
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
/** @brief Maximum number of Options in a message */
|
||||||
|
#ifndef NANOCOAP_NOPTS_MAX
|
||||||
#define NANOCOAP_NOPTS_MAX (16)
|
#define NANOCOAP_NOPTS_MAX (16)
|
||||||
#define NANOCOAP_URI_MAX (64)
|
|
||||||
#define NANOCOAP_BLOCK_SIZE_EXP_MAX (6) /**< Maximum size for a blockwise
|
|
||||||
* transfer as power of 2 */
|
|
||||||
/** @} */
|
|
||||||
|
|
||||||
#ifdef MODULE_GCOAP
|
|
||||||
#define NANOCOAP_QS_MAX (64)
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Maximum length of a resource path string read from or written to
|
||||||
|
* a message
|
||||||
|
*/
|
||||||
|
#ifndef NANOCOAP_URI_MAX
|
||||||
|
#define NANOCOAP_URI_MAX (64)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Maximum size for a blockwise transfer as a power of 2
|
||||||
|
*/
|
||||||
|
#ifndef NANOCOAP_BLOCK_SIZE_EXP_MAX
|
||||||
|
#define NANOCOAP_BLOCK_SIZE_EXP_MAX (6)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(MODULE_GCOAP) || defined(DOXYGEN)
|
||||||
|
/** @brief Maximum length of a query string written to a message */
|
||||||
|
#ifndef NANOCOAP_QS_MAX
|
||||||
|
#define NANOCOAP_QS_MAX (64)
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name coap_opt_finish() flag parameter values
|
* @name coap_opt_finish() flag parameter values
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user