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

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -