From 3edb108920c1e579d97329a6c2025a92fbb51d78 Mon Sep 17 00:00:00 2001 From: Jim Date: Fri, 27 Mar 2026 19:30:27 +0800 Subject: [PATCH] fix(protocomm): Add GATT service initialization that when gatt service changed, the peer can refresh gatt service --- components/protocomm/src/transports/protocomm_nimble.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/protocomm/src/transports/protocomm_nimble.c b/components/protocomm/src/transports/protocomm_nimble.c index 04f8e22326e..a07af70af84 100644 --- a/components/protocomm/src/transports/protocomm_nimble.c +++ b/components/protocomm/src/transports/protocomm_nimble.c @@ -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;