This group includes advertising APIs.
Data Structures | |
struct | at_ble_adv_data_update_on_the_fly_t |
use this structure when calling the api at_ble_adv_data_update_on_the_fly to set the advertising data on the fly More... | |
Functions | |
at_ble_status_t | at_ble_adv_channel_map_get (at_ble_adv_channel_map_t *ch) |
get advertising channel. More... | |
at_ble_status_t | at_ble_adv_channel_map_set (at_ble_adv_channel_map_t ch) |
Set advertising channel using one of at_ble_adv_channel_map_t. More... | |
at_ble_status_t | at_ble_adv_data_set (uint8_t const *const adv_data, uint8_t adv_data_len, uint8_t const *const scan_resp_data, uint8_t scan_response_data_len) |
Set, clear or update advertisement and scan response data. More... | |
at_ble_status_t | at_ble_adv_data_update_on_the_fly (at_ble_adv_data_update_on_the_fly_t *update_on_the_fly_data) |
Set, clear or update advertising data or scan response data or both on the fly (while an advertising operation is ongoing) . More... | |
at_ble_status_t | at_ble_adv_start (at_ble_adv_type_t type, at_ble_adv_mode_t mode, at_ble_addr_t *peer_addr, at_ble_filter_type_t filtered, uint16_t interval, uint16_t timeout, bool disable_randomness) |
Start advertising (GAP Discoverable, Connectable modes, Broadcast Procedure). More... | |
at_ble_status_t | at_ble_adv_stop (void) |
Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure). More... | |
at_ble_status_t | at_ble_en_recv_adv_cmp_event (bool en_adv_notification) |
Enable/Disable receiving advertising complete event AT_BLE_ADV_CMP_EVENT with the end of advertising event. More... | |
at_ble_status_t | at_ble_get_adv_cnt (uint32_t *adv_pdu_cnt) |
Get the count of Advertising frame. More... | |
at_ble_status_t | at_ble_rst_adv_cnt (void) |
Reset the count of Advertising frame. More... | |
at_ble_status_t at_ble_adv_channel_map_get | ( | at_ble_adv_channel_map_t * | ch | ) |
get advertising channel.
[in] | ch | used advertising channels at_ble_adv_channel_map_t. |
at_ble_status_t at_ble_adv_channel_map_set | ( | at_ble_adv_channel_map_t | ch | ) |
Set advertising channel using one of at_ble_adv_channel_map_t.
at_ble_status_t at_ble_adv_data_set | ( | uint8_t const *const | adv_data, |
uint8_t | adv_data_len, | ||
uint8_t const *const | scan_resp_data, | ||
uint8_t | scan_response_data_len | ||
) |
Set, clear or update advertisement and scan response data.
[in] | adv_data | Raw data to be placed in advertisement packet. If NULL, no changes are made to the current advertisement packet data. |
[in] | adv_data_len | Data length for adv_data. Max size 28 bytes, 3 bytes are reserved to set advertising AD type flags , shall not be set in advertising data. |
[in] | scan_resp_data | Raw data to be placed in scan response packet. If NULL, no changes are made to the current scan response packet data. |
[in] | scan_response_data_len | Data length for scan_resp_data. Max size 31 bytes. |
Referenced by altbeacon_init(), app_init(), beacon_init(), ble_advertisement_data_set(), brd_start_broadcast(), eddystone_adv_start(), and esurl_conf_adv_start().
at_ble_status_t at_ble_adv_data_update_on_the_fly | ( | at_ble_adv_data_update_on_the_fly_t * | update_on_the_fly_data | ) |
Set, clear or update advertising data or scan response data or both on the fly (while an advertising operation is ongoing) .
[in] | update_on_the_fly_data | update on the fly request parameters, refer to at_ble_adv_data_update_on_the_fly_t |
Referenced by eddystone_adv_start().
at_ble_status_t at_ble_adv_start | ( | at_ble_adv_type_t | type, |
at_ble_adv_mode_t | mode, | ||
at_ble_addr_t * | peer_addr, | ||
at_ble_filter_type_t | filtered, | ||
uint16_t | interval, | ||
uint16_t | timeout, | ||
bool | disable_randomness | ||
) |
Start advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).
[in] | type | Advertising type, see at_ble_adv_type_t for more info |
[in] | mode | either non-discoverable,General, Limited or Broadcaster , at_ble_adv_mode_t for more details |
[in] | peer_addr | For AT_BLE_ADV_TYPE_DIRECTED mode only, known peer address |
[in] | filtered | policy at_ble_filter_type_t for more details |
[in] | interval | Advertising interval between AT_BLE_ADV_INTERVAL_MIN and AT_BLE_ADV_INTERVAL_MAX in 0.625 ms units (20ms to 10.24s). This parameter must be set to 0 if type equals AT_BLE_ADV_TYPE_DIRECTED |
[in] | timeout | Advertising time-out between 0x0001 and 0x028F in scale of Seconds, 0x0000 disables time-out. This parameter must be set to 0 if type equals AT_BLE_ADV_TYPE_DIRECTED. Timeout only valid with AT_BLE_ADV_GEN_DISCOVERABLE and AT_BLE_ADV_LIM_DISCOVERABLE. |
[in] | disable_randomness | if True the device will advertise at the exact interval without adding the random 10msec |
Referenced by altbeacon_init(), anp_client_adv(), app_disconnected_event_handler(), app_init(), battery_service_advertise(), battery_start_advertisement(), beacon_init(), blp_sensor_adv(), brd_start_broadcast(), csc_prf_dev_adv(), device_information_advertise(), eddystone_adv_start(), esurl_conf_adv_start(), fmp_target_adv(), fmp_target_disconnect_event_handler(), hid_prf_dev_adv(), hid_prf_disconnect_event_handler(), hr_sensor_adv(), htpt_set_advertisement_data(), pas_client_adv(), pxp_reporter_adv(), pxp_reporter_disconnect_event_handler(), sps_service_advertise(), time_info_adv(), and time_info_disconnected_event_handler().
at_ble_status_t at_ble_adv_stop | ( | void | ) |
Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).
Referenced by eddystone_adv_stop().
at_ble_status_t at_ble_en_recv_adv_cmp_event | ( | bool | en_adv_notification | ) |
Enable/Disable receiving advertising complete event AT_BLE_ADV_CMP_EVENT with the end of advertising event.
[in] | en_adv_notification | enable/disable receiving advertising complete event |
at_ble_status_t at_ble_get_adv_cnt | ( | uint32_t * | adv_pdu_cnt | ) |
Get the count of Advertising frame.
[in] | adv_pdu_cnt | the count of advertising frame since start of advertising. |
Referenced by eddystone_create_tlm_frame(), and main().
at_ble_status_t at_ble_rst_adv_cnt | ( | void | ) |
Reset the count of Advertising frame.