3 months, 1 week ago.
AdvertisingDataBuilder support for nRF platform
3 months ago I posted a question regarding proper configuration of advertising data (https://os.mbed.com/questions/83675/BLE-advertising-data/)
I was answered that since mbed os 5.11, a new API is available for this purpose, using AdvertisingDataBuilder and other new methods. Since 5.11, the old methods are annotated as deprecated. I thus decided to move my code to the 5.11 API. When starting testing on the nRF51 and nRF52 platforms, I got BLE_ERROR_NOT_IMPLEMENTED errors on calls to gap().setAdvertisingParameters() and gap().setAdvertisingPayload( ble::LEGACY_ADVERTISING_HANDLE, ...). For double checking that I was not making errors in my code, I imported the HeartRateService example and tried to make it run on either nRF platform. I got the same error.
A few questions: - is it correct that the pre 5.11 are deprecated and the post 5.11 methods are not implemented on the nRF platforms ? - if yes, how can this be and when will that be implemented ? - if I am not wrong in my assessment, how is it possible to understand before trying it whether a specific feature is implemented on a given platform. I have watched in the mbed-os source code, but it is not very obvious to understand what is supported or not on a platform. I believe that this is not a HW limitation since no specific use of BLE 5.0 is made.
Thank you in advance for your answer.
3 months, 1 week ago.
I just tried importing mbed-os-example-ble-HeartRate into online compiler, and it is able to compile and work on my nRF52840_DK(PS: Please switch mbed-os version to 5.11.4, there is one issue in 5.11.5 and will be fixed in next release).
If you are saying compile your custom target, then I believe you should use mbed-cli instead of online compiler which doesn't support custom targets. However if you are saying change definition of a existed target, you can change that in mbed_app.json which is also showed in project tree in left area.
What issues do you have of Mbed Studio? Having your feedback would be very helpful for us!
Desmond, team Mbed
To post an answer, please log in.