Blufi device name change?
Blufi device name change?
When using either the android or iOS espblufi app to configure a blufi device, it always shows up as "BLUFI_DEVICE". So if you have a few that are ready to be connected to, they all say "BLUFI_DEVICE". On Android it shows the MAC of the bluetooth interface, and on iOS is shows a bunch of letters/numbers that don't match to anything relevant. Is there a way, in the firmware, to change "BLUFI_DEVICE" to a different value?
Re: Blufi device name change?
I, too, faced such a need!
Any help!
How to change device name?
Any help!
How to change device name?
Re: Blufi device name change?
In examples/bluetooth/blufi/main/blufi_init.c , i see the code to set the name
rc = ble_svc_gap_device_name_set(BLUFI_DEVICE_NAME);
Changing the macro to your desired name or passing preferred name to this API, should help.
rc = ble_svc_gap_device_name_set(BLUFI_DEVICE_NAME);
Changing the macro to your desired name or passing preferred name to this API, should help.
Re: Blufi device name change?
This is only #ifdef CONFIG_BT_NIMBLE_ENABLED. In the case of the blufi example app. Not using nimble, as bluedroid is the default. Even by redefining the BLUFI_DEVICE_NAME macro, it doesn't end up using that value.
Re: Blufi device name change?
For bluedroid, please check if modifying the macro BLUFI_DEVICE_NAME in common/btc/profile/esp/blufi/include/esp_blufi.h file works for you.
Re: Blufi device name change?
This seems to do something, but isn't working how I'd expect. On iOS when I change that value, the device no longer shows up in the EspBluFi app, however it shows up in the app we're developing but still shows "BLUFI_DEVICE" (this may be a problem with our app, will have to check with the developer).
There are a couple problems with this method. First, if I make that change, it's part of the IDF, so if another developer compiles and flashes, they are using the wrong value. Second, I need it to be dynamic. I need to be able to set the value to the unique identifier of the ESP32 (in our case, the wifi MAC).
Is there not another way to handle this?
Re: Blufi device name change?
The solution here is to change esp_bt_dev_set_device_name() so that it works with blufi. I've updated this feature request, but it's been open for months. https://github.com/espressif/esp-idf/issues/8071
Who is online
Users browsing this forum: No registered users and 323 guests