mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-28 16:46:31 +03:00
fix(protocomm): Add GATT service initialization that when gatt service changed, the peer can refresh gatt service
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