BLE_GAP_SetPeriAdvRxEnable

C

uint16_t BLE_GAP_SetPeriAdvRxEnable(uint16_t syncHandle, bool enable);

Description

Enables or disables reports for the periodic advertising train identified by the "syncHandle".

Note

This API is part of the extended advertising feature set and is incompatible with legacy advertising APIs. See BLE_GAP_ADV_CATS for details on advertising APIs. Initialization with BLE_GAP_ScanInit, BLE_GAP_ExtScanInit, and BLE_GAP_SyncInit is required before using this API.

Events generated

BLE_GAP_EVT_PERI_ADV_REPORT is generated when reporting is enabled.

Parameters

ParameterDescription
[in] syncHandleIdentity of the periodic advertising train.
[in] enableSet to true to enable reports, or false to disable them.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully enables or disables for the periodic advertising train.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.
MBA_RES_UNKNOWN_ADV_IDUnknown advertising identifier.