You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This should be fixed in the #3 merge yesterday with a commit that was added last minute. The crash would happen if you connect -> disconnect -> central.retrievePeripherals(). I've added a test case to confirm it's fixed for now.
Feels wrong to even have an implicitly-unwrapped Optional in the repo. I would like to remove it altogether. I don't see a scenario where you access a peripheral that wasn't first "discovered", meaning a standard Optional wouldn't be needed either. If that is true, I could add the Peripheral.discovery to the initializer but it would force that same assumption on all delegate methods that will need to wrap a CBPeripheral -> Peripheral.
This crashes in some situations: https://github.com/exPHAT/SwiftBluetooth/blob/c5a9f4e5d6d1ffc312ffe26ea1760dc9a9a9673f/Sources/SwiftBluetooth/Peripheral/Peripheral.swift#L31C30-L31C39
When retrieving the device from
central.retrievePeripherals(withIdentifiers: [uuid])
.The text was updated successfully, but these errors were encountered: