26#ifndef BT_GATT_SERVICE_HPP_
27#define BT_GATT_SERVICE_HPP_
87 std::weak_ptr<BTGattHandler> wbr_handler;
89 std::string toShortString()
const noexcept;
111 std::unique_ptr<const jau::uuid_t>
type;
116 BTGattService(
const std::shared_ptr<BTGattHandler> &handler_,
const bool isPrimary_,
117 const uint16_t startHandle_,
const uint16_t endHandle_, std::unique_ptr<const jau::uuid_t> && type_) noexcept
156 {
return lhs.
handle == rhs.handle && lhs.end_handle == rhs.end_handle; }
159 {
return !(lhs == rhs); }
Representing a Gatt Characteristic object from the GATTRole::Client perspective.
Representing a Gatt Service object from the GATTRole::Client perspective.
BTGattCharRef findGattChar(const jau::uuid_t &char_uuid) noexcept
Find a BTGattChar by its char_uuid.
BTGattService(const std::shared_ptr< BTGattHandler > &handler_, const bool isPrimary_, const uint16_t startHandle_, const uint16_t endHandle_, std::unique_ptr< const jau::uuid_t > &&type_) noexcept
const uint16_t end_handle
Service end handle, inclusive.
std::unique_ptr< const jau::uuid_t > type
Service type UUID.
BTDeviceRef getDeviceUnchecked() const noexcept
const uint16_t handle
Service start handle.
std::string toString() const noexcept override
BTGattHandlerRef getGattHandlerChecked() const
jau::darray< BTGattCharRef > characteristicList
List of Characteristic Declarations as shared reference.
static std::string java_class() noexcept
BTGattHandlerRef getGattHandlerUnchecked() const noexcept
std::string get_java_class() const noexcept override
BTDeviceRef getDeviceChecked() const
void reserve(size_type new_capacity)
Like std::vector::reserve(), increases this instance's capacity to new_capacity.
std::shared_ptr< BTGattHandler > BTGattHandlerRef
std::shared_ptr< BTDevice > BTDeviceRef
bool operator!=(const BTAdapter &lhs, const BTAdapter &rhs) noexcept
std::shared_ptr< BTGattChar > BTGattCharRef
std::shared_ptr< BTGattService > BTGattServiceRef
__pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.