class Characteristic
Defined at line 3446 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
Represents a local or remote GATT characteristic.
Public Members
static const fidl_type_t * FidlType
Public Methods
bool IsEmpty ()
Returns whether no field is set.
Characteristic & set_handle (::fuchsia::bluetooth::gatt2::Handle _value)
Characteristic & set_type (::fuchsia::bluetooth::Uuid _value)
Characteristic & set_properties (::fuchsia::bluetooth::gatt2::CharacteristicPropertyBits _value)
Characteristic & set_permissions (::fuchsia::bluetooth::gatt2::AttributePermissions _value)
Characteristic & set_descriptors (::std::vector< ::fuchsia::bluetooth::gatt2::Descriptor> _value)
void Characteristic ()
void Characteristic (Characteristic && other)
void ~Characteristic ()
Characteristic & operator= (Characteristic && other)
::std::unique_ptr<Characteristic> New ()
void Encode (::fidl::Encoder * _encoder, size_t _offset, std::optional< ::fidl::HandleInformation> maybe_handle_info)
void Decode (::fidl::Decoder * _decoder, Characteristic * _value, size_t _offset)
zx_status_t Clone (Characteristic * _result)
const ::fuchsia::bluetooth::gatt2::Handle & handle ()
Uniquely identifies this characteristic within a service.
For local characteristics, the specified handle must be unique across
all characteristic and descriptor handles in this service.
Always present. For local characteristics, this value is mandatory.
Defined at line 3457 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool has_handle ()
Defined at line 3461 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::fuchsia::bluetooth::gatt2::Handle * mutable_handle ()
Uniquely identifies this characteristic within a service.
For local characteristics, the specified handle must be unique across
all characteristic and descriptor handles in this service.
Always present. For local characteristics, this value is mandatory.
Defined at line 3470 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
void clear_handle ()
Defined at line 3478 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::fuchsia::bluetooth::Uuid & type ()
The UUID that identifies the type of this characteristic.
Always present. Mandatory for local characteristics.
Defined at line 3488 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool has_type ()
Defined at line 3492 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::fuchsia::bluetooth::Uuid * mutable_type ()
The UUID that identifies the type of this characteristic.
Always present. Mandatory for local characteristics.
Defined at line 3498 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
void clear_type ()
Defined at line 3506 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::fuchsia::bluetooth::gatt2::CharacteristicPropertyBits & properties ()
The characteristic properties bitfield.
Always present. Mandatory for local characteristics.
Defined at line 3516 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool has_properties ()
Defined at line 3520 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::fuchsia::bluetooth::gatt2::CharacteristicPropertyBits * mutable_properties ()
The characteristic properties bitfield.
Always present. Mandatory for local characteristics.
Defined at line 3526 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
void clear_properties ()
Defined at line 3534 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::fuchsia::bluetooth::gatt2::AttributePermissions & permissions ()
The attribute permissions of this characteristic. For remote
characteristics, this value will not be present until the permissions are
discovered via read and write requests.
For local characteristics, this value is mandatory.
Defined at line 3547 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool has_permissions ()
Defined at line 3551 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::fuchsia::bluetooth::gatt2::AttributePermissions * mutable_permissions ()
The attribute permissions of this characteristic. For remote
characteristics, this value will not be present until the permissions are
discovered via read and write requests.
For local characteristics, this value is mandatory.
Defined at line 3560 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
void clear_permissions ()
Defined at line 3568 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
const ::std::vector< ::fuchsia::bluetooth::gatt2::Descriptor> & descriptors ()
The descriptors of this characteristic.
Present only if non-empty. Optional for local characteristics.
Defined at line 3578 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
bool has_descriptors ()
Defined at line 3582 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
::std::vector< ::fuchsia::bluetooth::gatt2::Descriptor> * mutable_descriptors ()
The descriptors of this characteristic.
Present only if non-empty. Optional for local characteristics.
Defined at line 3588 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h
void clear_descriptors ()
Defined at line 3596 of file fidling/gen/sdk/fidl/fuchsia.bluetooth.gatt2/fuchsia.bluetooth.gatt2/hlcpp/fuchsia/bluetooth/gatt2/cpp/fidl.h