Drivers Libraries Help > BM71 Bluetooth Driver Library > Library Interface > h) BLE Functions > DRV_BM71_BLE_EnableAdvertising Function
MPLAB Harmony Bluetooth Help
DRV_BM71_BLE_EnableAdvertising Function

Enable or disable advertising.

Description

Function DRV_BM71_BLE_EnableAdvertising: 

void DRV_BM71_BLE_EnableAdvertising(const DRV_HANDLE handle, bool enable); 

Enable or disable BLE advertising.

Preconditions

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

Parameters
Parameters 
Description 
handle 
valid handle to an opened BM71 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_BM71) is used
DRV_BM71_BLE_EnableAdvertising(appData.bt.handle, true);
C
void DRV_BM71_BLE_EnableAdvertising(
    const DRV_HANDLE handle, 
    bool enable
);