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 761442910df3d3a06ea962651309c7000157c47b..19b628b720296e50b0e0564b030b321fa55ab39b 100644 |
--- a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm |
+++ b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm |
@@ -27,6 +27,10 @@ class BluetoothLowEnergyPeripheralBridge { |
device_mac_->DidDiscoverPrimaryServices(error); |
}; |
+ void DidDiscoverCharacteristics(CBService* service, NSError* error) { |
+ device_mac_->DidDiscoverCharacteristics(service, error); |
+ }; |
+ |
CBPeripheral* GetPeripheral() { return device_mac_->GetPeripheral(); } |
private: |
@@ -60,4 +64,10 @@ class BluetoothLowEnergyPeripheralBridge { |
bridge_->DidDiscoverPrimaryServices(error); |
} |
+- (void)peripheral:(CBPeripheral*)peripheral |
+ didDiscoverCharacteristicsForService:(CBService*)service |
+ error:(NSError*)error { |
+ bridge_->DidDiscoverCharacteristics(service, error); |
+} |
+ |
@end |