This group includes advertising APIs.
|
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...
|
|
get advertising channel.
- Parameters
-
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_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.
- Note
- To clear the advertisement data and set it to a 0-length packet, simply provide a valid pointer (pAdvData/pSrData) with its corresponding length (dlen/srdlen) set to 0.
- The call will fail if pAdvData and pSrData are both NULL since this would have no effect.
- Parameters
-
[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. |
- Note
- The First three bytes in advertising data have been reserved in order to Fill Flags(0x01) AD type. This data is set according to advertising mode selected.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Referenced by app_init(), and ble_advertisement_data_set().
Set, clear or update advertising data or scan response data or both on the fly (while an advertising operation is ongoing) .
- Note
-
- Parameters
-
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Start advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).
- Parameters
-
- Precondition
- If it is required to change BD address, at_ble_addr_set should be used otherwise default address will be used
- Note
- AT_BLE_ADV_REPORT will be received with error code in case of stack can not start advertising; refer to at_ble_status_t
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Referenced by app_init(), and ble_l2cap_disconnected().
Stop advertising (GAP Discoverable, Connectable modes, Broadcast Procedure).
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Enable/Disable receiving advertising complete event AT_BLE_ADV_CMP_EVENT with the end of advertising event.
- Parameters
-
[in] | en_adv_notification | enable/disable receiving advertising complete event |
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Get the count of Advertising frame.
- Parameters
-
[in] | adv_pdu_cnt | the count of advertising frame since start of advertising. |
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t
Reset the count of Advertising frame.
- Returns
- Upon successful completion the function shall return AT_BLE_SUCCESS, Otherwise the function shall return at_ble_status_t