ble_gap_adv_set_data() function
Configures the data to include in subsequent advertisements.
Syntax
int ble_gap_adv_set_data(const uint8_t *data,
int data_len);
Arguments
data
Buffer containing the advertising data.
data_len
The size of the advertising data, in bytes.
Return value
0 on succes, BLE_HS_EBUSY if advertising is in progress, other error code on failure.
ble_gap_adv_set_data() is called by 2 functions and calls 2 functions:
![]()
ble_gap_adv_set_data()
ble_gap_adv_set_data() reads 2 variables and writes 1 variable:
![]()
ble_gap_adv_set_data()