Page 1 of 1

How to change another BLE advertising name on the fly?

Posted: Tue Aug 25, 2020 2:58 am
by kevinlam
Hello,

I would like to change the advertising name after every BLE disconnection. For first connection: ADV_NAME_01, after disconnection then change to advertising name to ADV_NAME_02

I tried to call below functions before re-init the bluetooth but still no luck, anyone have experience to do this action?

esp_bluedroid_disable();
esp_bluedroid_deinit();
esp_bt_controller_disable();
esp_bt_controller_deinit();

Thanks and regards,
Kevin

Re: How to change another BLE advertising name on the fly?

Posted: Fri Aug 28, 2020 7:31 am
by chegewara

Re: How to change another BLE advertising name on the fly?

Posted: Fri Sep 04, 2020 7:22 am
by kevinlam
Thanks for the reply, it works perfectly.