bt_set_name() and setting local name #bt #bluetooth #api #ble


Carles Cufi
 

Hi there,

 

Most smartphones implement some sort of advertising data caching. Try stopping and starting scanning from the phone a couple of times to see if the name is updated without the need to connect.

 

Regards,

 

Carles

 

From: users@... <users@...> On Behalf Of j.cheng via Lists.Zephyrproject.Org
Sent: 10 February 2020 10:06
To: users@...
Cc: users@...
Subject: [Zephyr-users] bt_set_name() and setting local name #ble #bt #bluetooth #api

 

Hello,

I want to change the ble device name during runtime. I've enabled BT_DEVICE_NAME_DYNAMIC and BT_SETTINGS.

To change the device name during runtime i'm using bt_set_name(). However, when scanning for the device using the nrf connect toolbox app on my android device, i still see ''Zephyr'' as the device name. Only after connecting with the device, i see the correct new device name that was set by bt_set_name().

The bt_set_name() works, but not the way i would like to. Is there a way to show the changed device name before connecting with the device?

Kind regards,

Jamie


j.cheng@...
 

Hello,

I want to change the ble device name during runtime. I've enabled BT_DEVICE_NAME_DYNAMIC and BT_SETTINGS.

To change the device name during runtime i'm using bt_set_name(). However, when scanning for the device using the nrf connect toolbox app on my android device, i still see ''Zephyr'' as the device name. Only after connecting with the device, i see the correct new device name that was set by bt_set_name().

The bt_set_name() works, but not the way i would like to. Is there a way to show the changed device name before connecting with the device?

Kind regards,

Jamie