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

Unified Diff: device/bluetooth/bluetooth_low_energy_win.h

Issue 1739383002: Implement read & write remote GATT characteristic value for Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix conversion from 'size_t' to 'ULONG' error on trybot Created 4 years, 10 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
Index: device/bluetooth/bluetooth_low_energy_win.h
diff --git a/device/bluetooth/bluetooth_low_energy_win.h b/device/bluetooth/bluetooth_low_energy_win.h
index b7d378aa73644390fd2bdb9005e48a1d6e78b2d2..0267c47e201fbc916fba1f763e62aff702effb88 100644
--- a/device/bluetooth/bluetooth_low_energy_win.h
+++ b/device/bluetooth/bluetooth_low_energy_win.h
@@ -162,6 +162,20 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyWrapper {
scoped_ptr<BTH_LE_GATT_DESCRIPTOR>* out_included_descriptors,
USHORT* out_counts);
+ // Reads |characteristic| value in service with service device path
+ // |service_path|. The result will be stored in |*out_value|.
+ virtual HRESULT ReadTheValueOfACharacteristic(
scheib 2016/03/02 05:59:05 ReadCharacteristic or ReadCharacteristicValue
gogerald1 2016/03/02 23:56:29 Done.
+ base::FilePath& service_path,
+ const PBTH_LE_GATT_CHARACTERISTIC characteristic,
+ scoped_ptr<BTH_LE_GATT_CHARACTERISTIC_VALUE>* out_value);
+
+ // Writes |characteristic| value in service with service device path
+ // |service_path| to |*new_value|.
+ virtual HRESULT WriteTheValueOfACharacteristic(
scheib 2016/03/02 05:59:05 WriteCharacteristic or WriteCharacteristicValue
gogerald1 2016/03/02 23:56:29 Done.
+ base::FilePath& service_path,
+ const PBTH_LE_GATT_CHARACTERISTIC characteristic,
+ PBTH_LE_GATT_CHARACTERISTIC_VALUE new_value);
+
protected:
BluetoothLowEnergyWrapper();
virtual ~BluetoothLowEnergyWrapper();

Powered by Google App Engine
This is Rietveld 408576698