Skip to content

ArcBLEKit 0.2.6

Latest

Choose a tag to compare

@ilawsonlu ilawsonlu released this 18 Nov 04:20
1b16286

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 ScanOptions for duplicate advertisements and solicited service UUIDs. Pass .infinity to wait for a connection or a device match until completion or cancellation.
  • Add PeripheralSession.connectionState and make each connectionStates subscription 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.

Full changelog