cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Bluetooth

Anonymous
Not applicable

Hi,

i have a question about the use of the function that wiced_bt_dev_set_local_name.

There is no sample to use this function. Can you explain more?

Jane.Xia

0 Likes
1 Solution
Anonymous
Not applicable

Hi Jane,

wiced_bt_dev_set_local_name is used to change the name of the device. However, this is useful only in BR/EDR applications.

Note the following regarding device name:

- If you want to change the device name during discovery(inquiry), then you will need to modify the name manually when setting the EIR data.

- In BLE applications, you will have to change the name in advertisement packet (if necessary) and in the GATT database under the device name characteristic.

To use wiced_bt_dev_set_local_name API, add this API in the BTM_ENABLED_EVT to an example project, say a2dp_sink. Using your mobile, search for BT devices. Initially, you will see "a2dp_sink" but once you connect to it, the device name will change to whatever you have set.

View solution in original post

2 Replies
BoonT_56
Employee

Do you have a specific use-case scenario?

0 Likes
Anonymous
Not applicable

Hi Jane,

wiced_bt_dev_set_local_name is used to change the name of the device. However, this is useful only in BR/EDR applications.

Note the following regarding device name:

- If you want to change the device name during discovery(inquiry), then you will need to modify the name manually when setting the EIR data.

- In BLE applications, you will have to change the name in advertisement packet (if necessary) and in the GATT database under the device name characteristic.

To use wiced_bt_dev_set_local_name API, add this API in the BTM_ENABLED_EVT to an example project, say a2dp_sink. Using your mobile, search for BT devices. Initially, you will see "a2dp_sink" but once you connect to it, the device name will change to whatever you have set.

View solution in original post