SWRA769 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 negativevalue 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 (which means there should not be spaces in the name or only the first section of thename will be 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 mostMAX_NAME_LENGTH (not counting the trailing NULL terminator). This function will return zero if the local device name was successfully changed, or a negative return error code ifthere was an error condition.