class Peer
Defined at line 6744 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 6753 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 6757 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 6764 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 6772 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 6784 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 6788 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 6796 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 6804 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 6817 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 6821 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 6830 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 6838 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 6846 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 6850 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 6854 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 6862 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 6874 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 6878 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 6886 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 6894 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 6904 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 6908 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 6914 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 6922 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 6933 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 6937 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 6944 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 6952 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 6964 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 6968 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 6976 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 6984 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 6995 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 6999 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 7006 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 7014 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 7028 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 7032 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 7042 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 7050 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)