1515// Allows cpp wrapper to select the correct include paths when using esp-idf
1616#define CONFIG_NIMBLE_CPP_IDF
1717
18- /* Cannot use client without scan */
19- #if defined(CONFIG_BT_NIMBLE_ROLE_CENTRAL ) && !defined(CONFIG_BT_NIMBLE_ROLE_OBSERVER )
20- #define CONFIG_BT_NIMBLE_ROLE_OBSERVER
21- #endif
22-
23- /* Cannot use server without advertise */
24- #if defined(CONFIG_BT_NIMBLE_ROLE_PERIPHERAL ) && !defined(CONFIG_BT_NIMBLE_ROLE_BROADCASTER )
25- #define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
26- #endif
27-
2818/* Enables the use of Arduino String class for attribute values */
2919#if defined __has_include
3020# if __has_include (< Arduino .h > )
@@ -45,108 +35,3 @@ void nimble_cpp_assert(const char *file, unsigned line) __attribute((weak, noret
4535#endif
4636
4737#endif /* CONFIG_BT_ENABLED */
48-
49- #ifdef _DOXYGEN_
50-
51- /** @brief Un-comment to change the number of simultaneous connections (esp controller max is 9) */
52- #define CONFIG_BT_NIMBLE_MAX_CONNECTIONS 3
53-
54- /** @brief Un-comment to enable storing the timestamp when an attribute value is updated\n
55- * This allows for checking the last update time using getTimeStamp() or getValue(time_t*)\n
56- * If disabled, the timestamp returned from these functions will be 0.\n
57- * Disabling timestamps will reduce the memory used for each value.\n
58- * 1 = Enabled, 0 = Disabled; Default = Disabled
59- */
60- #define CONFIG_NIMBLE_CPP_ATT_VALUE_TIMESTAMP_ENABLED 0
61-
62- /** @brief Uncomment to set the default allocation size (bytes) for each attribute if\n
63- * not specified when the constructor is called. This is also the size used when a remote\n
64- * characteristic or descriptor is constructed before a value is read/notifed.\n
65- * Increasing this will reduce reallocations but increase memory footprint.\n
66- * Default value is 20. Range: 1 : 512 (BLE_ATT_ATTR_MAX_LEN)
67- */
68- #define CONFIG_NIMBLE_CPP_ATT_VALUE_INIT_LENGTH 20
69-
70- /** @brief Un-comment to change the default MTU size */
71- #define CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU 255
72-
73- /** @brief Un-comment to change default device name */
74- #define CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME "nimble"
75-
76- /** @brief Un-comment to set the debug log messages level from the NimBLE host stack.\n
77- * Values: 0 = DEBUG, 1 = INFO, 2 = WARNING, 3 = ERROR, 4 = CRITICAL, 5+ = NONE\n
78- * Uses approx. 32kB of flash memory.
79- */
80- #define CONFIG_BT_NIMBLE_LOG_LEVEL 5
81-
82- /** @brief Un-comment to set the debug log messages level from the NimBLE CPP Wrapper.\n
83- * Values: 0 = NONE, 1 = ERROR, 2 = WARNING, 3 = INFO, 4+ = DEBUG\n
84- * Uses approx. 32kB of flash memory.
85- */
86- #define CONFIG_NIMBLE_CPP_LOG_LEVEL 0
87-
88- /** @brief Un-comment to see NimBLE host return codes as text debug log messages.
89- * Uses approx. 7kB of flash memory.
90- */
91- #define CONFIG_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT
92-
93- /** @brief Un-comment to see GAP event codes as text in debug log messages.
94- * Uses approx. 1kB of flash memory.
95- */
96- #define CONFIG_NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT
97-
98- /** @brief Un-comment to see advertisment types as text while scanning in debug log messages.
99- * Uses approx. 250 bytes of flash memory.
100- */
101- #define CONFIG_NIMBLE_CPP_ENABLE_ADVERTISMENT_TYPE_TEXT
102-
103- /** @brief Un-comment to change the default GAP appearance */
104- #define CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE 0x0
105-
106- /** @brief Un-comment if not using NimBLE Client functions \n
107- * Reduces flash size by approx. 7kB.
108- */
109- #define CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED
110-
111- /** @brief Un-comment if not using NimBLE Scan functions \n
112- * Reduces flash size by approx. 26kB.
113- */
114- #define CONFIG_BT_NIMBLE_ROLE_OBSERVER_DISABLED
115-
116- /** @brief Un-comment if not using NimBLE Server functions \n
117- * Reduces flash size by approx. 16kB.
118- */
119- #define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
120-
121- /** @brief Un-comment if not using NimBLE Advertising functions \n
122- * Reduces flash size by approx. 5kB.
123- */
124- #define CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
125-
126- /** @brief Un-comment to change the number of devices allowed to store/bond with */
127- #define CONFIG_BT_NIMBLE_MAX_BONDS 3
128-
129- /** @brief Un-comment to change the maximum number of CCCD subscriptions to store */
130- #define CONFIG_BT_NIMBLE_MAX_CCCDS 8
131-
132- /** @brief Un-comment to change the random address refresh time (in seconds) */
133- #define CONFIG_BT_NIMBLE_RPA_TIMEOUT 900
134-
135- /**
136- * @brief Un-comment to change the number of MSYS buffers available.
137- * @details MSYS is a system level mbuf registry. For prepare write & prepare \n
138- * responses MBUFs are allocated out of msys_1 pool. This may need to be increased if\n
139- * you are sending large blocks of data with a low MTU. E.g: 512 bytes with 23 MTU will fail.
140- */
141- #define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT 12
142-
143- /** @brief Un-comment to use external PSRAM for the NimBLE host */
144- #define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL 1
145-
146- /** @brief Un-comment to change the core NimBLE host runs on */
147- #define CONFIG_BT_NIMBLE_PINNED_TO_CORE 0
148-
149- /** @brief Un-comment to change the stack size for the NimBLE host task */
150- #define CONFIG_BT_NIMBLE_TASK_STACK_SIZE 4096
151-
152- #endif // _DOXYGEN_
0 commit comments