![]() |
nRF Connect SDK API 3.3.99
|
| int bt_mgmt_scan_start | ( | uint16_t | scan_intvl, |
| uint16_t | scan_win, | ||
| enum bt_mgmt_scan_type | type, | ||
| char const *const | name, | ||
| uint32_t | brdcast_id ) |
#include <applications/nrf_audio/src/bluetooth/bt_management/bt_mgmt.h>
Start scanning for advertisements.
| [in] | scan_intvl | Scan interval in units of 0.625ms. Valid range: 0x4 - 0xFFFF; can be 0. |
| [in] | scan_win | Scan window in units of 0.625ms. Valid range: 0x4 - 0xFFFF; can be 0. |
| [in] | type | Type to scan for: ACL connection or broadcaster. |
| [in] | name | Name to search for. Depending on type of search, device name or broadcast name. Can be max BLE_SEARCH_NAME_MAX_LEN long; everything beyond that value will be cropped. Can be NULL. Shall be '\0' terminated. |
| [in] | brdcast_id | Broadcast ID to search for. Only valid if type is BT_MGMT_SCAN_TYPE_BROADCAST. If both name and brdcast_id are provided, then brdcast_id will be used. Set to BRDCAST_ID_NOT_USED if not in use. |
type. The same scanning parameters as when bt_mgmt_scan_start was last called will then be used.