Skip to content

Releases: jordanebelanger/SwiftyBluetooth

3.1.0

20 Apr 23:11
Compare
Choose a tag to compare

Fix delegate issues on iOS 16.4 leading to timeouts when calling peripheral methods. (such as discoverServices)

SwiftPM warning fix

10 Jan 21:50
Compare
Choose a tag to compare
3.0.1

SwiftPM related fixes

Xcode 13

29 Oct 17:33
e206fbe
Compare
Choose a tag to compare

Fix Xcode 13 related compatibility issues.

Fix peripheral disconnect not always firing

20 Nov 14:54
Compare
Choose a tag to compare

Fix peripheral disconnect not always firing

Add `Peripheral.PeripheralDisconnected` notificationcenter event on peripheral disconnection

19 Nov 16:10
c4d31a0
Compare
Choose a tag to compare

You can now listen to Peripheral disconnection using the Peripheral.PeripheralDisconnected notification center event.

You can listen to this notification roughly like this:

NotificationCenter.default.addObserver(forName: Peripheral.PeripheralDisconnected, object: peripheral, queue: nil) { (notif) in
    if let peripheral = notif.object as? Peripheral {
        print("Peripheral disconnected")
    }
    if let error = notif.userInfo?["error"] as? Error {
        print("Peripheral disconnected with error")
    }
}

Whereas peripheral is an instance of Peripheral.

Added SPM support

21 Sep 19:52
c2fe123
Compare
Choose a tag to compare

Added swift package manager support as well as compatibility with macos and tvos for both SPM and Cocoapods.

Thanks @levi !

2.0.0

03 Sep 03:19
a6a2b5b
Compare
Choose a tag to compare

Move to Swift 5.0, fix many warnings and use the now standard Swift Result type.

Swift 4

24 Sep 19:16
Compare
Choose a tag to compare

Moved to Swift 4

Result refactor + state restore

23 May 05:39
Compare
Choose a tag to compare
  • Now using a Result enum type instead of optional Errors in callbacks
  • Added state restoration

First Swift 3 compatible version

28 Nov 22:41
Compare
Choose a tag to compare

Updated documentations and all APIs to support swift 3