亲爱的对话框,
I'm now using Beacon reference code (3.40.6) and I'd like to change the part of adv packet without stopping
advertising. Could you tell me how to access the BLE resource which is reflected to adv packet?
Currently adv interval is 100mS and I plan to implement this modification in the app_resume_from_sleep().
Best Regards,
yukio
Device:
Hi ytesasaki,
Unfortunately, the advertising string can't change while the BLE is advertising, you first have to stop advertising, change the string and start advertising again. What do you mean "the BLE resource which is reflected to adv packet"?
Thanks MT_dialog
亲爱的对话框,
Thanks for your comment. I understand that it is impossible to change the adv packet without stopping the adv.
My meaning of "BLE resources..." is that the variable in the SRAM which affects to the actual packet of advertising.
Best Regards,
yukio
Hi yterasaki,
The advertising data in the beacon reference design are placed in a gapm_start_advertise_cmd struct in the adv_data member (&cmd->info.host.adv_data). Does this answer you question ?
Thanks MT_dialog
Thanks, Dialog
As you explains, adv data is transfered to BLE by the struct of gapm_start_advertise_cmd. My intention was
that I want to touch the adv packet inside the BLE directly without stopping the advertising, but your prior
answer said that it is impossible. So, I will seek another way to work around.
Best Regards,
yukio