ios - How to test equality on two CBPeripherals in CoreBluetooth? -
so keeping pool of peripherals during scan devices. when discover peripheral, want first check whether peripheral in pool. if in pool want update handle have of peripheral. if not in pool want add pool.
the problem corebluetooth no longer allows accessing uuid's peripherals. both of methods used access device uuid's deprecated in ios 7.1.
so correct way test equality of peripherals in corebluetooth?
yes, deprecated cbperipheral class. new "identifier" property added cbpeer superclass, cbcentral , cbperipheral inherit.
so should use:
peripheral.identifier.uuidstring
you can check changes in ap here: https://developer.apple.com/library/ios/releasenotes/general/ios80apidiffs/frameworks/corebluetooth.html
Comments
Post a Comment