Do you have a specific use-case scenario?
2 of 2 people found this helpful
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.