int ble_gap_adv_set_fields(const struct ble_hs_adv_fields *adv_fields)
Configures the fields to include in subsequent advertisements. This is a convenience wrapper for ble_gap_adv_set_data().
Parameter | Description |
---|---|
adv_fields | Specifies the advertisement data. |
Value | Condition |
---|---|
0 | Success. |
BLE_HS_EBUSY | Advertising is in progress. |
BLE_HS_EMSGSIZE | The specified data is too large to fit in an advertisement. |
Core return code | Unexpected error. |