prepare transition to esp-nimble-cpp (#19370)

This commit is contained in:
Christian Baars 2023-08-23 16:33:26 +02:00 committed by GitHub
parent 0d80e639ef
commit f4585a2718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -149,6 +149,12 @@
End Arduino user-config
**********************************/
#ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
#define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 4096
#endif
#ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL // means for Tasmota: nimble was already embedded into the Arduino framework
/* This section should not be altered */
#ifndef CONFIG_BT_NIMBLE_ROLE_CENTRAL_DISABLED
#define CONFIG_BT_NIMBLE_ROLE_CENTRAL
@ -170,10 +176,6 @@
#define CONFIG_BT_NIMBLE_PINNED_TO_CORE 0
#endif
#ifndef CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE
#define CONFIG_BT_NIMBLE_HOST_TASK_STACK_SIZE 4096
#endif
#ifndef CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_EXTERNAL
#define CONFIG_BT_NIMBLE_MEM_ALLOC_MODE_INTERNAL 1
#endif
@ -324,9 +326,12 @@
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
#endif
#endif //CONFIG_BT_NIMBLE_ROLE_CENTRAL
/* Enables the use of Arduino String class for attribute values */
#if defined __has_include
# if __has_include (<Arduino.h>)
# define NIMBLE_CPP_ARDUINO_STRING_AVAILABLE
# endif
#endif