mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-01 03:34:32 +02:00
Merge branch 'feat/auto_security_initiate_v5.2' into 'release/v5.2'
feat(nimble): Automatically initiate security if a GATT service request fails (v5.2) See merge request espressif/esp-idf!39868
This commit is contained in:
@@ -1218,6 +1218,15 @@ config BT_NIMBLE_GATTC_PROC_PREEMPTION_PROTECT
|
||||
can disrupt the GATT context,causing the service discovery callback to not be invoked.
|
||||
A temporary list is maintained to preserve the GATT context and use it in case of preemption.
|
||||
|
||||
config BT_NIMBLE_GATTC_AUTO_PAIR
|
||||
bool "Automatically pair upon receiving service request failure"
|
||||
depends on BT_NIMBLE_ENABLED
|
||||
default n
|
||||
help
|
||||
If enabled, when a service request (e.g. read, write) to a server fails, and the ATT
|
||||
error suggests insufficient security, then the central will initiate pairing and retry
|
||||
the service request.
|
||||
|
||||
menu "Host-controller Transport"
|
||||
config BT_NIMBLE_TRANSPORT_UART
|
||||
bool "Enable Uart Transport"
|
||||
|
Submodule components/bt/host/nimble/nimble updated: f5f9a42c2d...f940397bce
@@ -1991,6 +1991,14 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_GATTC_AUTO_PAIR
|
||||
#ifdef CONFIG_BT_NIMBLE_GATTC_AUTO_PAIR
|
||||
#define MYNEWT_VAL_BLE_GATTC_AUTO_PAIR CONFIG_BT_NIMBLE_GATTC_AUTO_PAIR
|
||||
#else
|
||||
#define MYNEWT_VAL_BLE_GATTC_AUTO_PAIR (0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef MYNEWT_VAL_BLE_HOST_ALLOW_CONNECT_WITH_SCAN
|
||||
#ifdef CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
|
||||
#define MYNEWT_VAL_BLE_HOST_ALLOW_CONNECT_WITH_SCAN CONFIG_BT_NIMBLE_HOST_ALLOW_CONNECT_WITH_SCAN
|
||||
|
Reference in New Issue
Block a user