class Peer
Defined at line 6085 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 6094 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 6098 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 6105 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 6113 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 6125 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 6129 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 6137 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 6145 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 6158 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 6162 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 6171 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 6179 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 6187 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 6191 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 6195 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 6203 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 6215 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 6219 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 6227 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 6235 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 6245 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 6249 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 6255 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 6263 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 6274 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 6278 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 6285 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 6293 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 6305 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 6309 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 6317 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 6325 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 6336 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 6340 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 6347 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 6355 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 6369 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 6373 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 6383 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 6391 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)