4 years, 4 months ago.

How to update BLE/GAP with " AdvertisingDataTypes.h"

Hello, In a simple Gap development I need to use the SERVICE_DATA_128BIT_ID who is not present in the "AdvertisingData". So how to use the AdvertisingDataType.h library ? Best regards Jiemde

1 Answer

4 years, 4 months ago.

Hi Jean-marie,

Does this api setServiceData help?

https://github.com/ARMmbed/mbed-os/blob/18d4adf04f50de2452d7686b77da375881f5811b/features/FEATURE_BLE/source/gap/AdvertisingDataBuilder.cpp#L241

Regards, Desmond

Hi Desmond, Thanks for your reply, I think that there are too much deprecated api and I don't know how to start and which one ? Also I'm very new in C++ ( more confortable with Python ! ) and without an simple example it's complicate to understand how that's work! Have you a simple example with only an GAP advertising with no services ? Or a tutorial for understand the procedure ( a lot of tutorial on Youtube but with deprecated functions ! ) Many thanks in advance if you can help me Best regards, Jiemde

posted by Jean-marie Defraine 05 Nov 2019