class Peer
Defined at line 6171 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 6180 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 6184 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 6191 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 6199 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 6211 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 6215 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 6223 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 6231 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 6244 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 6248 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 6257 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 6265 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 6273 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 6277 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 6281 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 6289 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 6301 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 6305 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 6313 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 6321 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 6331 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 6335 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 6341 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 6349 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 6360 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 6364 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 6371 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 6379 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 6391 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 6395 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 6403 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 6411 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 6422 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 6426 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 6433 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 6441 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 6455 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 6459 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 6469 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 6477 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)