SwiftyBluetooth
SwiftyBluetooth copied to clipboard
discoverServices error operationTimedOut(operation: EverShining.SBError.SBOperation.discoverServices)
When the previous device is disconnected and another device is connected, the connection is successful, but an error is reported discoverServices
The first connection is successful, discoverServices can be successful
https://user-images.githubusercontent.com/13548479/188608830-b0b9e9c1-d6e9-42b6-8723-cd2d0fdec9f3.MP4
PeripheralProxy.cbPeripheral.delegate is nil
` let UUIDs = [peripheral.identifier].compactMap{ $0 }
guard let per = retrievePeripherals(withUUIDs: UUIDs).first else { return }
self?.connectPeripheral = per`
I solved this problem by reacquiring the device list and I found that each time the scan was completed, the PeripheralProxy was released