fix: missing internal Bluetooth peripheral callback

This commit is contained in:
Serhiy Mytrovtsiy
2022-01-17 18:32:10 +01:00
parent 3c2e2c5e12
commit b727faa0ba

View File

@@ -205,6 +205,8 @@ internal class DevicesReader: Reader<[BLEDevice]>, CBCentralManagerDelegate, CBP
peripheral.discoverCharacteristics([DevicesReader.batteryCharacteristicsUUID], for: service)
}
func peripheral(_ peripheral: CBPeripheral, didModifyServices invalidatedServices: [CBService]) {}
func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?) {
guard error == nil else {
error_msg("didDiscoverCharacteristicsFor: \(error!)")