Pairing with an iOS peripheral?
Pairing with an iOS peripheral?
- Subject: Pairing with an iOS peripheral?
- From: William Henderson <email@hidden>
- Date: Wed, 08 May 2013 10:26:40 -0700
I'm working on a Mac app that talks to an iOS app via Bluetooth LE. The Mac app acts as the central, iOS as the peripheral. Right now, when the Mac app discovers a peripheral it:
- connects, discovers characteristics/services
- reads from a certain characteristic that identifies the device
- decides based on the identity of that device whether or not to do more.
This is a rather slow and error-prone way of doing things, but it is necessary because the iOS device changes peripherals periodically and (AFAIK) there is no way to tell whether a newly discovered peripheral is just a new peripheral from a known device or is coming from another device altogether. I've tried using advertisement data but CBAdvertisementDataManufacturerDataKey is apparently no longer allowed and other data is not consistently received in the peripheral discovery callback (I assume both of these are intentional to protect the user's privacy).
What I am wondering is, does pairing with the device change this at all? In my testing so far it, pairing doesn't seem to gain anything at all – service/characteristic caching doesn't work on the Mac and it doesn't change the behavior of having to reconnect/discover every time the device changes peripherals. Am I missing anything?
_______________________________________________
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