All posts filed under “CoreBluetooth

comments 6

#44 Watch your Bluetooth!

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…

comment 0

#17 Unit test all the things!

There is always a half When I was at the 3rd year of my BEng studies I had a chance to visit Turin, Italy, and to take part in Erasmus student’s exchange programme. At Politechnico di Torino I attended "Operating Systems" course on which the lecturer used to ask participants wether they had ever done some programming in C or…

comment 1

#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.