Re: How to send service related data in an advertisement.
Re: How to send service related data in an advertisement.
- Subject: Re: How to send service related data in an advertisement.
- From: Khaos Tian <email@hidden>
- Date: Wed, 30 Apr 2014 16:46:58 -0700
That key is only used to retrieve Service Data from Advertisement data in another peripheral. Right now it's not possible to set your own Service Data for advertising.
If you find that is a feature you really want to have, please go to developer bug report and file an feature request :)
Best Wishes,
Tian Zhang
> On Apr 30, 2014, at 3:02 PM, Alexander Syvak <email@hidden> wrote:
>
> Good evening,
>
> it is needed to include a service specific data to be sent with the service UUID and the local device name.
>
> Trying the CBAdvertisementDataServiceDataKey in the initialization options of the CBPeripheralManager yields an error that it cannot be used in there.
>
> Firstly, how to use the CBAdvertisementDataServiceDataKey?
> It would be better to understand it if you provide an example of usage on both a peripheral manager and a central manager sides.
>
> Secondly, what is a way to send a service related data of 20 byte long?
> Would it work in the background-mode?
>
> AS
> _______________________________________________
> 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
_______________________________________________
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