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

Unified Diff: device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm

Issue 2074563002: bluetooth: mac: write characteristic implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@read_characteristicscan_servicescan_cleanup
Patch Set: Merge from top of tree 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_peripheral_delegate.mm
diff --git a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
index 24d9d879aef099a15c9b8ba0e9215439272b3977..ac7b66ea44ce11aca7113192c5ea4e6d08cd205a 100644
--- a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
+++ b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
@@ -35,6 +35,10 @@ class BluetoothLowEnergyPeripheralBridge {
device_mac_->DidUpdateValue(characteristic, error);
}
+ void DidWriteValue(CBCharacteristic* characteristic, NSError* error) {
+ device_mac_->DidWriteValue(characteristic, error);
+ }
+
CBPeripheral* GetPeripheral() { return device_mac_->GetPeripheral(); }
private:
@@ -80,4 +84,9 @@ class BluetoothLowEnergyPeripheralBridge {
bridge_->DidUpdateValue(characteristic, error);
}
+- (void)peripheral:(CBPeripheral*)peripheral
+ didWriteValueForCharacteristic:(nonnull CBCharacteristic*)characteristic
+ error:(nullable NSError*)error {
+ bridge_->DidWriteValue(characteristic, error);
+}
@end
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698