ble_gap_adv_set_fields

int
ble_gap_adv_set_fields(const struct ble_hs_adv_fields *adv_fields)

Description

Configures the fields to include in subsequent advertisements. This is a convenience wrapper for ble_gap_adv_set_data().

Parameters

ParameterDescription
adv_fieldsSpecifies the advertisement data.

Returned values

ValueCondition
0Success.
BLE_HS_EBUSYAdvertising is in progress.
BLE_HS_EMSGSIZEThe specified data is too large to fit in an advertisement.
Core return codeUnexpected error.