Re: OS/other apps' services being discovered in didDiscoverServices?
Re: OS/other apps' services being discovered in didDiscoverServices?
- Subject: Re: OS/other apps' services being discovered in didDiscoverServices?
- From: Don Clark <email@hidden>
- Date: Wed, 23 Jul 2014 07:39:55 -0400
- Acceptlanguage: en-US
- Thread-topic: OS/other apps' services being discovered in didDiscoverServices?
Rather than connecting to determine whether or not you want to talk to a given device, could you screen on the manufacturer's ID, in the first two bytes of the advertisement? That should narrow it down a bit.
From: William Henderson <email@hidden> To: email@hidden Subject: OS/other apps' services being discovered in didDiscoverServices? Message-ID: <email@hidden" x-apple-data-detectors="true" x-apple-data-detectors-type="link" x-apple-data-detectors-result="7">email@hidden> Content-Type: text/plain; charset="utf-8"
On iOS 8 (including the latest iOS beta), I am occasionally seeing an odd behavior where I am seeing services from the OS and/or other apps being discovered in didDiscoverServices in addition to my own app’s UUID. Stranger still, sometimes (usually right after my app has been woken up or relaunched) I temporarily see the other UUID’s but not my own apps. Usually disconnecting and reconnecting (sometimes a couple times) will let me see them all.
This is problematic because (for various reasons I can get into if necessary), I need to call discoverServices on my central with nil – meaning scan for all services. I can’t scan just for my app’s UUID. To work around that, I keep track of peripherals that are advertising things I don’t care about and ‘reject’ them – meaning next time I see their device UUID I don’t bother connecting. But in this case I don’t know whether it’s a bogus device or I just haven’t waited long enough to see my app’s own service UUID. Only work around I’ve found is to attempt connecting/discovering several times before finally rejecting – gross. Sent from my iPhone |
_______________________________________________
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