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

Unified Diff: device/bluetooth/public/interfaces/device.mojom

Issue 2649473002: bluetooth: Add control for reading/writing of descriptor values to internals page. (Closed)
Patch Set: Merge upstream Created 3 years, 11 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 | « device/bluetooth/device.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/public/interfaces/device.mojom
diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom
index baa361150d058cc8660554e3e7fbda3fbe9ee7ab..9388e655b4e16df2c609f4bd732803dd5e383d7b 100644
--- a/device/bluetooth/public/interfaces/device.mojom
+++ b/device/bluetooth/public/interfaces/device.mojom
@@ -45,7 +45,8 @@ enum GattResult {
NOT_PAIRED,
NOT_SUPPORTED,
SERVICE_NOT_FOUND,
- CHARACTERISTIC_NOT_FOUND
+ CHARACTERISTIC_NOT_FOUND,
+ DESCRIPTOR_NOT_FOUND
};
// TODO(crbug.com/657632): Remove when numerical values can be optional.
@@ -77,6 +78,7 @@ struct CharacteristicInfo {
struct DescriptorInfo {
string id;
UUID uuid;
+ array<uint8> last_known_value;
};
interface Device {
@@ -114,4 +116,16 @@ interface Device {
// means that no descriptors were found.
GetDescriptors(string service_id, string characteristic_id) =>
(array<DescriptorInfo>? descriptors);
+
+ // Reads the value for the GATT Descriptor with |descriptor_id| in the GATT
+ // Characteristic with |characteristic_id| in the GATT Service with
+ // |service_id|.
+ ReadValueForDescriptor(string service_id, string characteristic_id,
+ string descriptor_id) => (GattResult result, array<uint8>? value);
+
+ // Writes the |value| for the GATT Descriptor with |descriptor_id| in the GATT
+ // Characteristic with |characteristic_id| in the GATT Service with
+ // |service_id|.
+ WriteValueForDescriptor(string service_id, string characteristic_id,
+ string descriptor_id, array<uint8> value) => (GattResult result);
};
« no previous file with comments | « device/bluetooth/device.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698