Repository navigation
What's Changed
- End active scans and pending connections when Bluetooth powers off or resets. Automatic reconnect waits for Bluetooth to return and retrieves the peripheral again.
- Keep connection attempts independent across peripherals and preserve GATT event delivery when replacing a session for the same peripheral.
- Invalidate stale GATT attributes and rediscover services to restore affected notification streams. Retry when the connection drops again during restoration, and avoid a crash when a callback refers to a released service.
- Add
ScanOptionsfor duplicate advertisements and solicited service UUIDs. Pass.infinityto wait for a connection or a device match until completion or cancellation. - Add
PeripheralSession.connectionStateand make eachconnectionStatessubscription independent. The sample app adds indefinite connection waits and per-device advertisement counts.
Compatibility
Each connectionStates subscriber starts with the current state, followed by live updates. A subscriber that joins an already ready session receives .ready first.
Validation
- 135 SwiftPM tests passed with Xcode 26.6 and with Xcode 27.2 in Swift 6 mode.
- The iOS Release build, DocC build, and sample app Release build for iOS Simulator passed.
- Physical BLE device verification is pending.