class Peer

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

Represents a Bluetooth Low Energy peer that may act in the broadcaster, peripheral, or central

role. The peer's role depends on whether it is obtained from the Central or Peripheral protocol.

Public Members

static const fidl_type_t * FidlType

Public Methods

bool IsEmpty ()

Returns whether no field is set.

const ::fuchsia::bluetooth::PeerId & id ()

Uniquely identifies this peer on the current system.

This field is always present.

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

bool has_id ()

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

::fuchsia::bluetooth::PeerId * mutable_id ()

Uniquely identifies this peer on the current system.

This field is always present.

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

void clear_id ()

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

const bool & connectable ()

Whether or not this peer is connectable. Non-connectable peers are typically in the LE

broadcaster role.

This field is always present.

Defined at line 6832 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 6836 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

bool * mutable_connectable ()

Whether or not this peer is connectable. Non-connectable peers are typically in the LE

broadcaster role.

This field is always present.

Defined at line 6844 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 6852 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const int8_t & rssi ()

The last observed signal strength of this peer. This field is only present for a peer that

is broadcasting. The RSSI can be stale if the peer has not been advertising.

NOTE: This field should NOT be confused with the "connection RSSI" of a peer that is currently

connected to the system.

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

bool has_rssi ()

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

int8_t * mutable_rssi ()

The last observed signal strength of this peer. This field is only present for a peer that

is broadcasting. The RSSI can be stale if the peer has not been advertising.

NOTE: This field should NOT be confused with the "connection RSSI" of a peer that is currently

connected to the system.

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

void clear_rssi ()

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

const ::fuchsia::bluetooth::le::AdvertisingData & advertising_data ()

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

bool has_advertising_data ()

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

::fuchsia::bluetooth::le::AdvertisingData * mutable_advertising_data ()

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

void clear_advertising_data ()

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

const ::std::string & name ()

The name of this peer. The name is often obtained during a scan procedure and can get

updated during the name discovery procedure following a connection.

This field is present if the name is known.

Defined at line 6922 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 6926 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

::std::string * mutable_name ()

The name of this peer. The name is often obtained during a scan procedure and can get

updated during the name discovery procedure following a connection.

This field is present if the name is known.

Defined at line 6934 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 6942 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.le/fuchsia.bluetooth.le/hlcpp/fuchsia/bluetooth/le/cpp/fidl.h

const ::fuchsia::bluetooth::le::ScanData & data ()

Information from advertising and scan response data broadcast by this peer. When present,

this contains the advertising data last received from the peer.

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

bool has_data ()

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

::fuchsia::bluetooth::le::ScanData * mutable_data ()

Information from advertising and scan response data broadcast by this peer. When present,

this contains the advertising data last received from the peer.

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

void clear_data ()

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

const bool & bonded ()

Whether or not this peer is bonded.

This field is always present.

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

bool has_bonded ()

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

bool * mutable_bonded ()

Whether or not this peer is bonded.

This field is always present.

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

void clear_bonded ()

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

const int64_t & last_updated ()

The value of the system monotonic clock, measured at the time this peer

was last updated (e.g. due to reception of an advertisement).

This field is always present.

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

bool has_last_updated ()

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

int64_t * mutable_last_updated ()

The value of the system monotonic clock, measured at the time this peer

was last updated (e.g. due to reception of an advertisement).

This field is always present.

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

void clear_last_updated ()

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

const uint8_t & advertising_sid ()

Value of the Advertising SID.

Range: 0x00 to 0x0F

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

bool has_advertising_sid ()

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

uint8_t * mutable_advertising_sid ()

Value of the Advertising SID.

Range: 0x00 to 0x0F

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

void clear_advertising_sid ()

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

const uint16_t & periodic_advertising_interval ()

Interval of the periodic advertising.

The presence of this field indicates that a periodic advertising train

is associated with this advertisement.

Range: 0x0006 to 0xFFFF

Time: N × 1.25 ms

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

bool has_periodic_advertising_interval ()

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

uint16_t * mutable_periodic_advertising_interval ()

Interval of the periodic advertising.

The presence of this field indicates that a periodic advertising train

is associated with this advertisement.

Range: 0x0006 to 0xFFFF

Time: N × 1.25 ms

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

void clear_periodic_advertising_interval ()

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

Peer & set_id (::fuchsia::bluetooth::PeerId _value)
Peer & set_connectable (bool _value)
Peer & set_rssi (int8_t _value)
Peer & set_advertising_data (::fuchsia::bluetooth::le::AdvertisingData _value)
Peer & set_name (::std::string _value)
Peer & set_data (::fuchsia::bluetooth::le::ScanData _value)
Peer & set_bonded (bool _value)
Peer & set_last_updated (int64_t _value)
Peer & set_advertising_sid (uint8_t _value)
Peer & set_periodic_advertising_interval (uint16_t _value)
void Peer ()
void Peer (Peer && other)
void ~Peer ()
Peer & operator= (Peer && other)
::std::unique_ptr<Peer> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Peer * _value, size_t _offset)
zx_status_t Clone (Peer * _result)