Skip to content

Commit

Permalink
prepare transition to esp-nimble-cpp (#19370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Staars authored Aug 23, 2023
1 parent 0d80e63 commit f4585a2
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions lib/libesp32_div/NimBLE-Arduino/src/nimconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

0 comments on commit f4585a2

Please sign in to comment.