From d4c5a0dea642a74b9e36b0b74db53238b5b5e393 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sat, 21 Mar 2026 08:23:51 -0400 Subject: [PATCH] NimBLEServer::serviceChanged() should be public to enable it being called outside of the library to indicate GATT changes --- src/NimBLEServer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NimBLEServer.h b/src/NimBLEServer.h index 7c998cb1..8e2504d0 100644 --- a/src/NimBLEServer.h +++ b/src/NimBLEServer.h @@ -84,6 +84,7 @@ class NimBLEServer { void setDataLen(uint16_t connHandle, uint16_t tx_octets) const; bool updatePhy(uint16_t connHandle, uint8_t txPhysMask, uint8_t rxPhysMask, uint16_t phyOptions); bool getPhy(uint16_t connHandle, uint8_t* txPhy, uint8_t* rxPhy); + void serviceChanged(); # if MYNEWT_VAL(BLE_ROLE_CENTRAL) NimBLEClient* getClient(uint16_t connHandle); @@ -122,7 +123,6 @@ class NimBLEServer { static int handleGapEvent(struct ble_gap_event* event, void* arg); static int handleGattEvent(uint16_t connHandle, uint16_t attrHandle, ble_gatt_access_ctxt* ctxt, void* arg); static void gattRegisterCallback(struct ble_gatt_register_ctxt* ctxt, void* arg); - void serviceChanged(); bool resetGATT(); bool m_gattsStarted : 1;