nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ bt_scan_filter_add()

int bt_scan_filter_add ( enum bt_scan_filter_type  type,
const void *  data 
)

#include <include/bluetooth/scan.h>

Function for adding any type of filter to the scanning.

This function adds a new filter by type. The filter will be added if there is available space in this filter type array, and if the same filter has not already been set.

Parameters
[in]typeFilter type.
[in]dataPointer to the filter data to add.
Returns
0 If the operation was successful. Otherwise, a (negative) error code is returned.