Changelog History
-
v2.2.1 Changes
November 20, 2020🛠Fix peripheral disconnect not always firing
-
v2.2.0 Changes
November 19, 2020You 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) inif 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 ofPeripheral
. -
v2.1.0 Changes
September 21, 2020âž• Added swift package manager support as well as compatibility with macos and tvos for both SPM and Cocoapods.
Thanks @levi !
-
v2.0.0 Changes
September 03, 2020🚚 Move to Swift 5.0, fix many warnings and use the now standard Swift Result type.
-
v1.0.0 Changes
September 24, 2017🚚 Moved to Swift 4
-
v0.4.0 Changes
May 23, 2017- Now using a Result enum type instead of optional Errors in callbacks
- âž• Added state restoration
-
v0.2.0 Changes
November 28, 2016📚 Updated documentations and all APIs to support swift 3
-
v0.1.1 Changes
August 03, 2016🛠Fixed registration to characteristic using charac UUID for the service UUID
-
v0.1.0 Changes
July 12, 2016✅ First test version, the API is still subject to significant change in the near future, notably the CBDescriptor related api