How to change another BLE advertising name on the fly?

kevinlam
Posts: 7
Joined: Mon Jul 06, 2020 3:24 am

How to change another BLE advertising name on the fly?

Postby kevinlam » Tue Aug 25, 2020 2:58 am

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


kevinlam
Posts: 7
Joined: Mon Jul 06, 2020 3:24 am

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

Postby kevinlam » Fri Sep 04, 2020 7:22 am

Thanks for the reply, it works perfectly.

Who is online

Users browsing this forum: Bing [Bot] and 189 guests