Re: Advertised service showing up twice?
Re: Advertised service showing up twice?
- Subject: Re: Advertised service showing up twice?
- From: Martijn The <email@hidden>
- Date: Fri, 23 May 2014 19:51:55 -0700
> Out of curiosity are you also sending the UUID in the scan response?
Is that legal / within spec?
CSS v4.pdf, page 9: "An extended inquiry response or advertising data packet shall not contain more than one instance for each Service UUID data size."
AFAIK, where you put what (adv_ind or scan_rsp) is up to you.
If your app filters by Service UUID, I'd put the Service UUID in the advertising packet, in the hope that iOS does not do a scan request when it does not match with what an app is looking for. That would save the energy of sending the scan request/response.
AFAIK, iOS will automatically perform the scan request if the advertisement is of interest. So you can put the name in the scan response.
The payloads of the adv_ind and scan_rsp will be collated together and then handed off to your app.
As an aside, if you don't put the name in the advertisement / scan response, iOS seems to read the name characteristic of the GAP GATT service (if you implement it). I've noticed that if you put a partial name in the advertisment / scan response, iOS will also read the name characteristic and make it accessible through CBPeripheral's name property. Sometimes the partial name sometimes still shows up in iOS Settings / Bluetooth. Not sure what's up with that.
_______________________________________________
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