Skip to content

Commit 392909e

Browse files
[ESP32]: Added the missing ble_store_config_init api to fix ble_bonding (#37705)
1 parent 629fea4 commit 392909e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/platform/ESP32/nimble/BLEManagerImpl.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@
7070
#include "services/gap/ble_svc_gap.h"
7171
#include "services/gatt/ble_svc_gatt.h"
7272

73+
// Not declared in any header file, hence requires a forward declaration.
74+
extern "C" void ble_store_config_init(void);
75+
7376
#define MAX_ADV_DATA_LEN 31
7477
#define CHIP_ADV_DATA_TYPE_FLAGS 0x01
7578
#define CHIP_ADV_DATA_FLAGS 0x06
@@ -957,6 +960,7 @@ CHIP_ERROR BLEManagerImpl::InitESPBleLayer(void)
957960
}
958961
}
959962

963+
ble_store_config_init();
960964
nimble_port_freertos_init(bleprph_host_task);
961965

962966
xSemaphoreTake(semaphoreHandle, portMAX_DELAY);

0 commit comments

Comments
 (0)