GAP advertising data buffers. More...
#include <ble_gap.h>
Data Fields |
|
| ble_data_t | adv_data |
| ble_data_t | scan_rsp_data |
Detailed Description
GAP advertising data buffers.
The application must provide the buffers for advertisement. The memory shall reside in application RAM, and shall never be modified while advertising. The data shall be kept alive until either:
- BLE_GAP_EVT_ADV_SET_TERMINATED is raised.
- BLE_GAP_EVT_CONNECTED is raised with ble_gap_evt_connected_t::adv_handle set to the corresponding advertising handle.
- Advertising is stopped.
- Advertising data is changed. To update advertising data while advertising, provide new buffers to sd_ble_gap_adv_set_configure .
Field Documentation
| ble_data_t ble_gap_adv_data_t::adv_data |
Advertising data.
- Note
- Advertising data can only be specified for a ble_gap_adv_properties_t::type that is allowed to contain advertising data.
| ble_data_t ble_gap_adv_data_t::scan_rsp_data |
Scan response data.
- Note
- Scan response data can only be specified for a ble_gap_adv_properties_t::type that is scannable.