1.1.2.1.1.4.12 BLE_GAP_EnableOneTimeAdv

C

uint16_t BLE_GAP_EnableOneTimeAdv(uint8_t option);

Description

Start one time advertising event.

Events generated

BLE_GAP_EVT_CONNECTED Generated when connection is established. BLE_GAP_EVT_ADV_COMPL Generated when advertising event is complete.

Only one of aboved events would be generated at the same time.

Parameters

ParameterDescription
[in] optionOption for one time advertising. See Advertising option.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully start advertising.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_INVALID_PARAInvalid parameters.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed when extended Adv. feature is in-use.