From 92076dd1468fc83ac1617f4a38c64f2d091d257c Mon Sep 17 00:00:00 2001 From: jay Date: Tue, 21 Oct 2025 10:57:17 +0800 Subject: [PATCH] Bluetooth GATT active notification function issue --- wireless/bluetooth/bt_gatt.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wireless/bluetooth/bt_gatt.c b/wireless/bluetooth/bt_gatt.c index 2e8d38e7623..0e447e6c2f2 100644 --- a/wireless/bluetooth/bt_gatt.c +++ b/wireless/bluetooth/bt_gatt.c @@ -420,6 +420,11 @@ static uint8_t notify_cb(FAR const struct bt_gatt_attr_s *attr, { continue; } + /* Skip clients that have not enabled notifications*/ + if (ccc->cfg[i].value != BT_GATT_CCC_NOTIFY) + { + continue; + } conn = bt_conn_lookup_addr_le(&ccc->cfg[i].peer); if (!conn || conn->state != BT_CONN_CONNECTED) -- Gitee