Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > g) Device Name and Address Functions > DRV_BM64_SetBDName Function
MPLAB Harmony Bluetooth Help
DRV_BM64_SetBDName Function

Set the Bluetooth device name.

Description

Function DRV_BM64_SetBDName: 

void DRV_BM64_SetBTName(const DRV_HANDLE handle, const char* buffer); 

Set a temporary Bluetooth device name from an ASCII string buffer.

Preconditions

DRV_BM64_Open must have been called to obtain a valid opened device handle.

Parameters
Parameters 
Description 
handle 
valid handle to an opened BM64 device driver unique to client 
buffer 
pointer to a char buffer containing the new name 
Returns

None.

Example
// note generic version of call (DRV_BT instead of DRV_BM64) is used
DRV_BT_SetBDName(appData.bt.handle, "Temporary BM64 Name");
C
void DRV_BM64_SetBDName(
    const DRV_HANDLE handle, 
    const char* buffer
);