Using iOS 6.1 both
simulator and iDevice
I am seeing scanning
behaviour that I didn’t expect. I have two Peripheral within range. I
see the same on both the simulator and device after reset.
I have run as scan
over 5 seconds and accumulate peripherals returning with a null UUID with the
intention of performing the double connection later to get the full UUID and name.
I am using scanForPeripheralsWithServices
with options set to null so I wou’t expect to see duplicates
2013-03-19
14:10:19.652 WTLCD[41774:c07] null periph added:1
2013-03-19
14:10:19.652 WTLCD[41774:c07] Peripheral.UUID = (null)
2013-03-19
14:10:19.653 WTLCD[41774:c07] Peripheral.name = (null)
2013-03-19
14:10:19.654 WTLCD[41774:c07] null periph added:2
2013-03-19
14:10:19.655 WTLCD[41774:c07] Peripheral.UUID = (null)
2013-03-19
14:10:19.655 WTLCD[41774:c07] Peripheral.name = Controller
2013-03-19
14:10:20.721 WTLCD[41774:c07] null periph added:3
2013-03-19
14:10:20.722 WTLCD[41774:c07] Peripheral.UUID = (null)
2013-03-19
14:10:20.722 WTLCD[41774:c07] Peripheral.name = (null)
2013-03-19
14:10:20.723 WTLCD[41774:c07] null periph added:4
2013-03-19
14:10:20.724 WTLCD[41774:c07] Peripheral.UUID = (null)
2013-03-19
14:10:20.724 WTLCD[41774:c07] Peripheral.name = Controller
My problem is that if I get four null devices (callbacks)
how do I know which to connect too, or doesn’t it matter – Or should
I attempt a connection as soon as I see a null and not store it?
Any thoughts, thanks, Steve.