fix(protocomm): Add GATT service initialization that when gatt service changed, the peer can refresh gatt service

This commit is contained in:
Jim
2026-03-27 19:30:27 +08:00
parent 726f714997
commit 688eef5dff

View File

@@ -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;