1 month ago.
BLE advertising data
I wonder whether the implementation of GapAdvertisingData::addData() is correct - corresponding to the BLE standard ? In this implementation, it is not possible to add several AD Structures with the type SERVICE_DATA. It seems that it should be possible to provide service data for more than one service in the advertising data. The standard is not quite clear about it (section 11.1.10 of Core4.0). But the Nordic Semiconductor implementation allows for it. So what is the correct implementation ?
Thank you in advance for your answer.
2 weeks, 6 days ago.
With mbed OS 5.11, we introduced some new API, we provide an advertising data builder https://github.com/ARMmbed/mbed-os/blob/master/features/FEATURE_BLE/ble/gap/AdvertisingDataBuilder.h that has less limitation than the previous one. With setAdvertisingPayload(), you can set any payload you want.
We will keep improving those APIs for better using on advertising packets.
Please feel free to ask me any questions!
- Desmond, team Mbed
1 month ago.
Just saw your post !! What a coincidence...I struggled for hours regarding this subjet:
See how I managed to make it work:
Thank you for your post!!
Bye bye Fred
To post an answer, please log in.