Drivers Libraries Help > BM64 Bluetooth Driver Library > Library Interface > h) BLE Functions > DRV_BM64_BLE_EnableAdvertising Function
MPLAB Harmony Bluetooth Help
DRV_BM64_BLE_EnableAdvertising Function

Enable or disable advertising.

Description

Function DRV_BM64_BLE_EnableAdvertising: 

void DRV_BM64_BLE_EnableAdvertising(const DRV_HANDLE handle, bool enable); 

Enable or disable BLE advertising.

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 
enable 
true to enable advertising, false to disable advertising 
Returns

None.

Example
// note generic version of call (DRV_BT instead of DRV_BM64) is used
DRV_BM64_BLE_EnableAdvertising(appData.bt.handle, true);
C
void DRV_BM64_BLE_EnableAdvertising(
    const DRV_HANDLE handle, 
    bool enable
);