esp-nimble-cpp  1.4.1
nimconfig.h
Go to the documentation of this file.
1 
8 #pragma once
9 
10 #include "sdkconfig.h"
11 #include "nimconfig_rename.h"
12 
13 #if defined(CONFIG_BT_ENABLED)
14 
15 // Allows cpp wrapper to select the correct include paths when using esp-idf
16 #define CONFIG_NIMBLE_CPP_IDF
17 
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 
28 /* Enables the use of Arduino String class for attribute values */
29 #if defined __has_include
30 # if __has_include (<Arduino.h>)
31 # define NIMBLE_CPP_ARDUINO_STRING_AVAILABLE
32 # endif
33 #endif
34 
35 #endif /* CONFIG_BT_ENABLED */
36 
37 #ifdef _DOXYGEN_
38 
40 #define CONFIG_BT_NIMBLE_MAX_CONNECTIONS 3
41 
48 #define CONFIG_NIMBLE_CPP_ATT_VALUE_TIMESTAMP_ENABLED 0
49 
56 #define CONFIG_NIMBLE_CPP_ATT_VALUE_INIT_LENGTH 20
57 
59 #define CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU 255
60 
62 #define CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME "nimble"
63 
68 #define CONFIG_BT_NIMBLE_LOG_LEVEL 5
69 
74 #define CONFIG_NIMBLE_CPP_LOG_LEVEL 0
75 
79 #define CONFIG_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT
80 
84 #define CONFIG_NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT
85 
89 #define CONFIG_NIMBLE_CPP_ENABLE_ADVERTISMENT_TYPE_TEXT
90 
92 #define CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE 0x0
93 
97 #define CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED
98 
102 #define CONFIG_BT_NIMBLE_ROLE_OBSERVER_DISABLED
103 
107 #define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
108 
112 #define CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
113 
115 #define CONFIG_BT_NIMBLE_MAX_BONDS 3
116 
118 #define CONFIG_BT_NIMBLE_MAX_CCCDS 8
119 
121 #define CONFIG_BT_NIMBLE_RPA_TIMEOUT 900
122 
129 #define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT 12
130 
132 #define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL 1
133 
135 #define CONFIG_BT_NIMBLE_PINNED_TO_CORE 0
136 
138 #define CONFIG_BT_NIMBLE_TASK_STACK_SIZE 4096
139 
140 #endif // _DOXYGEN_