The BTLE specification does allow user/custom data to be added to the advertising packets. Which field in the advertising data structure is the right place for adding such data? I'd like to avoid hacks, so prefer to do it only where appropriate.
The BTLE specification does allow user/custom data to be added to the advertising packets. Which field in the advertising data structure is the right place for adding such data? I'd like to avoid hacks, so prefer to do it only where appropriate.
Thanks! What would 'Service Data' look like? (Some of these fields are a mystery to me... what do the first two bytes mean?)
The first byte is the length of this field, the second one is the ID for manufacturer specific data.
Have a look at GAP (11.1) for information on how do do this information.
Where exactly are you referring to when you say "GAP (11.1)"?
When I refer to GAP then I'm talking about the Bluetooth 4.0 Specification - Volume 3, Part C,
Specification can be found here: https://www.bluetooth.org/en-us/specification/adopted-specifications
Hi
For a small example of how to include manufacturer specific data in the advertise packet please have a look at the attached example. It is based on the HRS example in the SDK, the only change is to the advertise packet.
Regards Torbjørn