Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
26 #ifndef BT_GATT_DESCRIPTOR_HPP_
27 #define BT_GATT_DESCRIPTOR_HPP_
65 std::weak_ptr<BTGattChar> wbr_char;
67 std::string toShortString()
const noexcept;
102 std::unique_ptr<const uuid_t>
type;
116 const uint16_t handle_) noexcept
117 : wbr_char(characteristic),
type(std::move(type_)),
handle(handle_),
value() {}
131 virtual std::string
toString() const noexcept override;
180 {
return lhs.handle == rhs.handle; }
183 {
return !(lhs == rhs); }
@ CHARACTERISTIC_APPEARANCE
@ CHARACTERISTIC_SERVICE_CHANGED
static const uuid16_t TYPE_EXT_PROP
std::unique_ptr< const uuid_t > type
Type of descriptor.
@ CUSTOM_CHARACTERISTIC_DESCRIPTION
Our identifier to mark a custom vendor Characteristic Descriptor.
virtual std::string toString() const noexcept override
bool operator==(const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
bool writeValue()
BT Core Spec v5.2: Vol 3, Part G GATT: 4.12.3 Write Characteristic Descriptors.
@ CHARACTERISTIC_USER_DESCRIPTION
std::shared_ptr< BTGattChar > getGattCharChecked() const
std::string get_java_class() const noexcept override
static std::string java_class() noexcept
static const uuid16_t TYPE_USER_DESC
bool isClientCharConfig() const noexcept
@ CHARACTERISTIC_PERIPHERAL_PREF_CONN
std::shared_ptr< BTGattChar > BTGattCharRef
bool readValue(int expectedLength=-1)
BT Core Spec v5.2: Vol 3, Part G GATT: 4.12.1 Read Characteristic Descriptor.
std::shared_ptr< BTGattChar > getGattCharUnchecked() const noexcept
BTGattDesc(const BTGattCharRef &characteristic, std::unique_ptr< const uuid_t > &&type_, const uint16_t handle_) noexcept
const uint16_t handle
Characteristic Descriptor Handle.
static const uuid16_t TYPE_CCC_DESC
@ CLIENT_CHARACTERISTIC_CONFIGURATION
@ CHARACTERISTIC_PRESENTATION_FORMAT
std::shared_ptr< BTDevice > getDeviceChecked() const
@ SERVER_CHARACTERISTIC_CONFIGURATION
@ CHARACTERISTIC_PERIPHERAL_PRIV_FLAG
Persistent octet data, i.e.
bool operator!=(const EUI48Sub &lhs, const EUI48Sub &rhs) noexcept
@ CHARACTERISTIC_AGGREGATE_FORMAT
Type
Following UUID16 GATT profile attribute types are listed under: BT Core Spec v5.2: Vol 3,...
std::shared_ptr< BTGattHandler > getGattHandlerChecked() const
bool isExtendedProperties() const noexcept
Value is uint16_t bitfield.
std::shared_ptr< BTGattDesc > BTGattDescRef
BT Core Spec v5.2: Vol 3, Part G GATT: 3.3.3 Characteristic Descriptor.
@ CHARACTERISTIC_RECONNECTION_ADDRESS
@ CHARACTERISTIC_EXTENDED_PROPERTIES