Hello,
Is it possible with SDK5 to change the advertising data packets dynamically during the life of the application?
If yes, how?
Thanks for your help.,
Andrea
Keywords:
Device:
Hi Andrea,
Yes, it is posible to change the advertising data dynamically with SDK5, please check the ble_app_barebone example in the SDK. The idea is to stop advertising, change the advertising string and start advertising again. The stop of the advertisement is issued by a kernel timer and the beggining of the new advertisement period is beggining when the stop advertising message has beem consumed, check the user_app_adv_undirect_complete().
Please check the following functions:
user_app_adv_start()
mnf_data_update()
app_add_ad_struct()
Thanks MT_dialog