mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 03:00:34 +03:00
Merge branch 'bugfix/fix_protocomm_nimble_gatt_service_not_changed_v5.5' into 'release/v5.5'
fix(protocomm): Add GATT service initialization that when gatt service changed, the peer can refresh gatt service (v5.5) See merge request espressif/esp-idf!48298
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#include "host/ble_uuid.h"
|
||||
#include "host/util/util.h"
|
||||
#include "services/gap/ble_svc_gap.h"
|
||||
#include "services/gatt/ble_svc_gatt.h"
|
||||
|
||||
static const char *TAG = "protocomm_nimble";
|
||||
|
||||
@@ -472,6 +473,10 @@ int
|
||||
gatt_svr_init(const simple_ble_cfg_t *config)
|
||||
{
|
||||
int rc;
|
||||
|
||||
/* GATT service initialization */
|
||||
ble_svc_gatt_init();
|
||||
|
||||
rc = ble_gatts_count_cfg(config->gatt_db);
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user