On WWDC 2017 the breaking news was revealed – WatchOS 4 ships with CoreBluetooth and allows apps to connect up to 2 peripherals! ❤️! This issue will show a simple implementation of a Bluetooth Central that can be used in apps built for iOS 11 and WatchOS 4! Bluetooth Low Energy (BLE) Bluetooth Low Energy is a standard of low-range…
All posts tagged “Bluetooth Low Energy”
#2 Un-crash swiftly from CBCentralManager callbacks to a deallocated object
CBCentralManager is a class from CoreBluetooth framework for Bluetooth connectivity. It servers as a configurator of communication with external devices, represented as CBPeripheral objects by the framework. Configuration of Bluetooth interface and communication with peripherals is done asynchronuousley, so one can set self as delegate in order to catch Bluetooth-related events.