feat(bt/bluedroid): Added mode to use BlueDroid host only without Bluetooth Controller
This commit is contained in:
@@ -272,7 +272,7 @@ void app_main(void)
|
||||
#endif // CONFIG_BT_ENABLED
|
||||
#endif // CONFIG_EXAMPLE_CONNECT_WIFI
|
||||
|
||||
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
|
||||
#if CONFIG_BT_CONTROLLER_ENABLED && (CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED)
|
||||
ESP_ERROR_CHECK(esp_ble_helper_init());
|
||||
#endif
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include "sdkconfig.h"
|
||||
|
||||
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
|
||||
#if CONFIG_BT_CONTROLLER_ENABLED && (CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED)
|
||||
|
||||
#include "ble_api.h"
|
||||
#include "esp_log.h"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "esp_log.h"
|
||||
#include "string.h"
|
||||
|
||||
#if CONFIG_BT_BLE_ENABLED
|
||||
#if CONFIG_BT_CONTROLLER_ENABLED && CONFIG_BT_BLE_ENABLED
|
||||
|
||||
static const char *TAG = "bluedroid_gatts";
|
||||
static prepare_type_env_t a_prepare_write_env;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#if CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED
|
||||
#if CONFIG_BT_CONTROLLER_ENABLED && (CONFIG_BT_BLE_ENABLED || CONFIG_BT_NIMBLE_ENABLED)
|
||||
esp_err_t esp_ble_helper_init(void);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
#include "sdkconfig.h"
|
||||
#if CONFIG_BT_BLE_ENABLED
|
||||
#if CONFIG_BT_CONTROLLER_ENABLED && CONFIG_BT_BLE_ENABLED
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
|
||||
Reference in New Issue
Block a user