It seems the consensus is the identifier is only useful until disconnected when the device uses random addressing. But surely this means retrievePeripheralsWithIdentifiers: method is also useless for devices with random addressing? Unless iOS tracks devices somehow in order to return a valid CBPeripheral object. In which case, it could use the same identifier.
It would be nice to have this cleared up in the documentation for the identifier property, but CBPeer is not documented at all, so it would be nice to have any documentation for the property!
Thanks to Jeff, Richard, Zachary.
iOS devices use random/private addressing, and the MAC changes regularly. I would expect iOS's reported peripheral identifier to change when this happens. Without bonding, there is no possibility of continued identification of one specific device past about 15 minutes or so, if I recall correctly.
Does the pattern you are seeing fit with this explanation, or is there something happening that eliminates this possibility?
Jeff
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
|