mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
fix(nimble): Fix for clang compilation issues
This commit is contained in:
@@ -14,6 +14,12 @@
|
||||
#include "services/gap/ble_svc_gap.h"
|
||||
#include "ble_multi_conn_cent.h"
|
||||
|
||||
#if !MYNEWT_VAL(BLE_EXT_ADV) || !MYNEWT_VAL(OPTIMIZE_MULTI_CONN)
|
||||
#error "This example requires NimBLE Extended Advertising and multi-connection optimization. " \
|
||||
"Enable BT_NIMBLE_50_FEATURE_SUPPORT, BT_NIMBLE_EXT_ADV, and BT_NIMBLE_OPTIMIZE_MULTI_CONN; " \
|
||||
"use a supported target from README.md (e.g. esp32h2, esp32c6) and run idf.py set-target."
|
||||
#endif
|
||||
|
||||
#define BLE_PEER_NAME "esp-multi-conn"
|
||||
#define BLE_PEER_MAX_NUM (MYNEWT_VAL(BLE_MAX_CONNECTIONS) - 1)
|
||||
#define BLE_PREF_EVT_LEN_MS (5)
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# This file was generated using idf.py save-defconfig. It can be edited manually.
|
||||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
|
||||
#
|
||||
# Minimal NimBLE config for multi-connection central (requires BLE 5.0 ext adv).
|
||||
# Supported targets: ESP32-C5, ESP32-C6, ESP32-C61, ESP32-H2, etc. (see README.md).
|
||||
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_BT_NIMBLE_ENABLED=y
|
||||
CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70
|
||||
CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y
|
||||
CONFIG_BT_NIMBLE_EXT_ADV=y
|
||||
CONFIG_BT_NIMBLE_TRANSPORT_EVT_SIZE=70
|
||||
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=70
|
||||
CONFIG_BT_NIMBLE_GATT_MAX_PROCS=70
|
||||
CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=100
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
# This file was generated using idf.py save-defconfig. It can be edited manually.
|
||||
# Espressif IoT Development Framework (ESP-IDF) Project Minimal Configuration
|
||||
#
|
||||
# Minimal NimBLE config for multi-connection peripheral (requires BLE 5.0 ext adv).
|
||||
# Supported targets: ESP32-C5, ESP32-C6, ESP32-C61, ESP32-H2, etc. (see README.md).
|
||||
|
||||
CONFIG_BT_ENABLED=y
|
||||
CONFIG_BT_NIMBLE_ENABLED=y
|
||||
CONFIG_BT_NIMBLE_HCI_EVT_BUF_SIZE=70
|
||||
CONFIG_BT_NIMBLE_50_FEATURE_SUPPORT=y
|
||||
CONFIG_BT_NIMBLE_EXT_ADV=y
|
||||
CONFIG_BT_NIMBLE_TRANSPORT_EVT_SIZE=70
|
||||
CONFIG_BT_NIMBLE_MAX_CONNECTIONS=69
|
||||
CONFIG_BT_NIMBLE_MSYS_1_BLOCK_COUNT=100
|
||||
CONFIG_BT_NIMBLE_LOG_LEVEL_WARNING=y
|
||||
|
||||
Reference in New Issue
Block a user