class Filter

Defined at line 1221 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

Filter parameters for use during a scan. A discovered peer only matches the

filter if it satisfies all of the present filter parameters.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

Filter & set_service_uuid (::fuchsia::bluetooth::Uuid _value)
Filter & set_service_data_uuid (::fuchsia::bluetooth::Uuid _value)
Filter & set_manufacturer_id (uint16_t _value)
Filter & set_connectable (bool _value)
Filter & set_name (::std::string _value)
Filter & set_max_path_loss (int8_t _value)
Filter & set_solicitation_uuid (::fuchsia::bluetooth::Uuid _value)
void Filter ()
void Filter (Filter && other)
void ~Filter ()
Filter & operator= (Filter && other)
::std::unique_ptr<Filter> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Filter * _value, size_t _offset)
zx_status_t Clone (Filter * _result)
const ::fuchsia::bluetooth::Uuid & service_uuid ()

Filter based on advertised service UUID.

Defined at line 1228 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_service_uuid ()

Defined at line 1232 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

::fuchsia::bluetooth::Uuid * mutable_service_uuid ()

Filter based on advertised service UUID.

Defined at line 1237 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_service_uuid ()

Defined at line 1245 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const ::fuchsia::bluetooth::Uuid & service_data_uuid ()

Filter based on service data containing the given UUID.

Defined at line 1254 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_service_data_uuid ()

Defined at line 1258 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

::fuchsia::bluetooth::Uuid * mutable_service_data_uuid ()

Filter based on service data containing the given UUID.

Defined at line 1263 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_service_data_uuid ()

Defined at line 1271 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const uint16_t & manufacturer_id ()

Filter based on a manufacturer identifier present in the manufacturer

data. If this filter parameter is set, then the advertising payload must

contain manufacturer specific data with the provided company identifier

to satisfy this filter. Manufacturer identifiers can be found at

https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/

Defined at line 1284 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_manufacturer_id ()

Defined at line 1288 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

uint16_t * mutable_manufacturer_id ()

Filter based on a manufacturer identifier present in the manufacturer

data. If this filter parameter is set, then the advertising payload must

contain manufacturer specific data with the provided company identifier

to satisfy this filter. Manufacturer identifiers can be found at

https://www.bluetooth.com/specifications/assigned-numbers/company-identifiers/

Defined at line 1297 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_manufacturer_id ()

Defined at line 1305 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const bool & connectable ()

Filter based on whether or not a device is connectable. For example, a

client that is only interested in peripherals that it can connect to can

set this to true. Similarly a client can scan only for broadcasters by

setting this to false.

Defined at line 1317 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_connectable ()

Defined at line 1321 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool * mutable_connectable ()

Filter based on whether or not a device is connectable. For example, a

client that is only interested in peripherals that it can connect to can

set this to true. Similarly a client can scan only for broadcasters by

setting this to false.

Defined at line 1329 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_connectable ()

Defined at line 1337 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const ::std::string & name ()

Filter results based on a portion of the advertised device name.

Substring matches are allowed.

Defined at line 1347 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_name ()

Defined at line 1351 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

::std::string * mutable_name ()

Filter results based on a portion of the advertised device name.

Substring matches are allowed.

Defined at line 1357 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_name ()

Defined at line 1365 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const int8_t & max_path_loss ()

Filter results based on the path loss of the radio wave. A device that

matches this filter must satisfy the following:

1. Radio transmission power level and received signal strength must be

available for the path loss calculation;

2. The calculated path loss value must be less than, or equal to,

`max_path_loss`.

NOTE: This field is calculated using the RSSI and TX Power information

obtained from advertising and scan response data during a scan procedure.

It should NOT be confused with information for an active connection

obtained using the "Path Loss Reporting" feature.

Defined at line 1384 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_max_path_loss ()

Defined at line 1388 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

int8_t * mutable_max_path_loss ()

Filter results based on the path loss of the radio wave. A device that

matches this filter must satisfy the following:

1. Radio transmission power level and received signal strength must be

available for the path loss calculation;

2. The calculated path loss value must be less than, or equal to,

`max_path_loss`.

NOTE: This field is calculated using the RSSI and TX Power information

obtained from advertising and scan response data during a scan procedure.

It should NOT be confused with information for an active connection

obtained using the "Path Loss Reporting" feature.

Defined at line 1403 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_max_path_loss ()

Defined at line 1411 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const ::fuchsia::bluetooth::Uuid & solicitation_uuid ()

Filter based on a service solicitation by service UUID.

Service solicitation is an invitation to a peer to connect if they

provide a service we want to use.

Defined at line 1422 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool has_solicitation_uuid ()

Defined at line 1426 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

::fuchsia::bluetooth::Uuid * mutable_solicitation_uuid ()

Filter based on a service solicitation by service UUID.

Service solicitation is an invitation to a peer to connect if they

provide a service we want to use.

Defined at line 1433 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

void clear_solicitation_uuid ()

Defined at line 1441 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h