Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(202)

Unified Diff: device/bluetooth/bluetooth_gatt_characteristic.h

Issue 1758293003: bluetooth: Clarify how StartNotifySession function works (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Add blank line Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_gatt_characteristic.h
diff --git a/device/bluetooth/bluetooth_gatt_characteristic.h b/device/bluetooth/bluetooth_gatt_characteristic.h
index 6dabe8714ff3a803af636c7d1ce28d7cda0fedf2..8cce601b0e0d3cd02d62b2b41b01c0fc788769ef 100644
--- a/device/bluetooth/bluetooth_gatt_characteristic.h
+++ b/device/bluetooth/bluetooth_gatt_characteristic.h
@@ -181,6 +181,12 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattCharacteristic {
// notifications/indications. On success, the characteristic starts sending
// value notifications and |callback| is called with a session object whose
// ownership belongs to the caller. |error_callback| is called on errors.
+ //
+ // Writes to the Client Characteristic Configuration descriptor to enable
+ // notifications/indications. Core Bluetooth Specification [V4.2 Vol 3 Part G
+ // Section 3.3.1.1. Characteristic Properties] requires this descriptor to be
+ // present when notifications/indications are supported. If the descriptor is
+ // not present |error_callback| will be run.
virtual void StartNotifySession(const NotifySessionCallback& callback,
const ErrorCallback& error_callback) = 0;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698