SWRA772 august 2023 CC2564C
The SetLocalName command is responsible for setting the name of the local Bluetooth device to a specified name. This command returns zero on a successful execution and a negative value on all errors. A Bluetooth Stack ID must exist before attempting to call this command.
One parameter is necessary for this command. The specified device name must be the only parameter (which means there are no spaces in the name. If spaces are in the name, only the first section of the name is set.)
GAP_Set_Local_Device_Name(BluetoothStackID, TempParam->Params[0].strParam)
int BTPSAPI GAP_Set_Local_Device_Name(unsigned int BluetoothStackID, char *Name)
This function is provided to allow the changing of the device name of the local Bluetooth device. The name parameter must be a pointer to a NULL terminated ASCII string of at most MAX_NAME_LENGTH (not counting the trailing NULL terminator). This function returns zero if the local device name was successfully changed, or a negative return error code if there is an error condition.