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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2074563002: bluetooth: mac: write characteristic implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@read_characteristicscan_servicescan_cleanup
Patch Set: Final version Created 4 years, 6 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_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index 1d2267c2788bd4c8b172281e1fe75c822031754c..a153cb1c180f4cd3691e628f9f6c7995fe45f503 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -321,6 +321,15 @@ void BluetoothLowEnergyDeviceMac::DidUpdateValue(
gatt_service->DidUpdateValue(characteristic, error);
}
+void BluetoothLowEnergyDeviceMac::DidWriteValue(
+ CBCharacteristic* characteristic,
+ NSError* error) {
+ BluetoothRemoteGattServiceMac* gatt_service =
+ GetBluetoothRemoteGattService(characteristic.service);
+ DCHECK(gatt_service);
+ gatt_service->DidWriteValue(characteristic, error);
+}
+
// static
std::string BluetoothLowEnergyDeviceMac::GetPeripheralIdentifier(
CBPeripheral* peripheral) {

Powered by Google App Engine
This is Rietveld 408576698