Change Advertising data dinamically

2 posts / 0 new
Last post
Andrea Longobardi
Offline
Last seen:4 years 10 months ago
加入:2015-03-09 17:04
Change Advertising data dinamically

Hello,

Is it possible with SDK5 to change the advertising data packets dynamically during the life of the application?

If yes, how?

谢谢你的帮助p.,

Andrea

Device:
MT_dialog
Offline
Last seen:5 days 21 hours ago
工作人员
加入:2015-06-08 11:34
Hi Andrea,

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