mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-23 13:40:55 +01:00
Fix build with IDF v5 (#139)
Co-authored-by: h2zero <powellperalata@gmail.com>
This commit is contained in:
parent
00d0bbd544
commit
b2dba08649
3 changed files with 23 additions and 1 deletions
|
@ -23,7 +23,9 @@
|
|||
# include "esp_bt.h"
|
||||
# include "nvs_flash.h"
|
||||
# if defined(CONFIG_NIMBLE_CPP_IDF)
|
||||
# if (ESP_IDF_VERSION < ESP_IDF_VERSION_VAL(5, 0, 0) || CONFIG_BT_NIMBLE_LEGACY_VHCI_ENABLE)
|
||||
# include "esp_nimble_hci.h"
|
||||
# endif
|
||||
# include "nimble/nimble_port.h"
|
||||
# include "nimble/nimble_port_freertos.h"
|
||||
# include "host/ble_hs.h"
|
||||
|
|
|
@ -25,6 +25,18 @@
|
|||
#define CONFIG_BT_NIMBLE_ROLE_BROADCASTER
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE
|
||||
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DEVICE 0
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_BTDM_SCAN_DUPL_TYPE_DATA
|
||||
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DATA 1
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_BTDM_SCAN_DUPL_TYPE_DATA_DEVICE
|
||||
#define CONFIG_BTDM_SCAN_DUPL_TYPE_DATA_DEVICE 2
|
||||
#endif
|
||||
|
||||
/* Enables the use of Arduino String class for attribute values */
|
||||
#if defined __has_include
|
||||
# if __has_include (<Arduino.h>)
|
||||
|
|
|
@ -59,3 +59,11 @@
|
|||
#if defined(CONFIG_NIMBLE_MAX_CONNECTIONS ) && !defined(CONFIG_BT_NIMBLE_MAX_CONNECTIONS)
|
||||
#define CONFIG_BT_NIMBLE_MAX_CONNECTIONS CONFIG_NIMBLE_MAX_CONNECTIONS
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE) && defined(CONFIG_BT_LE_SCAN_DUPL_CACHE_SIZE)
|
||||
#define CONFIG_BTDM_SCAN_DUPL_CACHE_SIZE CONFIG_BT_LE_SCAN_DUPL_CACHE_SIZE
|
||||
#endif
|
||||
|
||||
#if !defined(CONFIG_BTDM_SCAN_DUPL_TYPE) && defined(CONFIG_BT_LE_SCAN_DUPL_TYPE)
|
||||
#define CONFIG_BTDM_SCAN_DUPL_TYPE CONFIG_BT_LE_SCAN_DUPL_TYPE
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue