esp-nimble-cpp  1.3.2
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 #endif /* CONFIG_BT_ENABLED */
29 
30 #ifdef _DOXYGEN_
31 
33 #define CONFIG_BT_NIMBLE_MAX_CONNECTIONS 3
34 
36 #define CONFIG_BT_NIMBLE_ATT_PREFERRED_MTU 255
37 
39 #define CONFIG_BT_NIMBLE_SVC_GAP_DEVICE_NAME "nimble"
40 
45 #define CONFIG_BT_NIMBLE_LOG_LEVEL 5
46 
51 #define CONFIG_NIMBLE_CPP_LOG_LEVEL 0
52 
56 #define CONFIG_NIMBLE_CPP_ENABLE_RETURN_CODE_TEXT
57 
61 #define CONFIG_NIMBLE_CPP_ENABLE_GAP_EVENT_CODE_TEXT
62 
66 #define CONFIG_NIMBLE_CPP_ENABLE_ADVERTISMENT_TYPE_TEXT
67 
69 #define CONFIG_BT_NIMBLE_SVC_GAP_APPEARANCE 0x0
70 
74 #define CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED
75 
79 #define CONFIG_BT_NIMBLE_ROLE_OBSERVER_DISABLED
80 
84 #define CONFIG_BT_NIMBLE_ROLE_PERIPHERAL_DISABLED
85 
89 #define CONFIG_BT_NIMBLE_ROLE_BROADCASTER_DISABLED
90 
92 #define CONFIG_BT_NIMBLE_MAX_BONDS 3
93 
95 #define CONFIG_BT_NIMBLE_MAX_CCCDS 8
96 
98 #define CONFIG_BT_NIMBLE_RPA_TIMEOUT 900
99 
106 #define CONFIG_BT_NIMBLE_MSYS1_BLOCK_COUNT 12
107 
109 #define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL 1
110 
112 #define CONFIG_BT_NIMBLE_PINNED_TO_CORE 0
113 
115 #define CONFIG_BT_NIMBLE_TASK_STACK_SIZE 4096
116 
117 #endif // _DOXYGEN_