-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Closed as not planned
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: Bluetootharea: Bluetooth HostBluetooth Host (excluding BR/EDR)Bluetooth Host (excluding BR/EDR)
Description
As a developer of a GATT service making use of notifications, I may need to send notifications continuously when a client is connected and subscribed. The notifications may be tailored to the connections.
I would like a signal telling me when a client is connected and subscribed to notifications, and likewise for indications.
Alternatives:
- Poll
_bt_gatt_ccc.cfgperiodically. There may be some happens-to-work solution to avoid the periodic scanning by listening for_bt_gatt_ccc.write,bt_conn_cb.connected,bt_conn_cb.disconnected, but AFAIK these are not ordered with respect to the change in_bt_gatt_ccc.cfg.
Non-alternatives:
_bt_gatt_ccc.cfg_changed: Signals a change to_bt_gatt_ccc.value, which is a summary._bt_gatt_ccc.cfg_write: Callback for the ATT write. Does not react to a bonded subscribed client connecting. Does not react to disconnection.
Possibly relevant discussion: #79822
Metadata
Metadata
Assignees
Labels
EnhancementChanges/Updates/Additions to existing featuresChanges/Updates/Additions to existing featuresarea: Bluetootharea: Bluetooth HostBluetooth Host (excluding BR/EDR)Bluetooth Host (excluding BR/EDR)