diff --git a/wireless/bluetooth/bt_gatt.c b/wireless/bluetooth/bt_gatt.c index 2e8d38e76230e469f551299640c4b02f43bff6e7..0e447e6c2f2c9a1feac201fd48648de3c3035197 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)