SWRA770 august 2023 CC2564C
The SetLocalName command is responsible for setting the name of the local Bluetooth Device to a specified name. This function returns zero on a successful execution and a negative value on all errors. A Bluetooth Stack ID must exist before attempting to call this function.
One parameter is necessary for this command. The specified device name must be the only parameter.
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 was an error condition.