Skip to content
Snippets Groups Projects
Unverified Commit f475f1cc authored by Martine Lenders's avatar Martine Lenders Committed by GitHub
Browse files

Merge pull request #10678 from kb2ma/nanocoap/doc_config_group

net/nanocoap: allow user to configure macros
parents 365cac17 5e9a2c09
No related branches found
No related tags found
No related merge requests found
......@@ -178,19 +178,39 @@ extern "C" {
#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)
#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)
#define NANOCOAP_BLOCK_SIZE_EXP_MAX (6) /**< Maximum size for a blockwise
* transfer as power of 2 */
/** @} */
#endif
#ifdef MODULE_GCOAP
#define NANOCOAP_QS_MAX (64)
/**
* @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
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment