47 std::shared_ptr<BTGattHandler> ref = wbr_handler.lock();
48 if(
nullptr == ref ) {
57 return h->getDeviceUnchecked();
68 if(
nullptr != c && char_uuid.equivalent( *(c->value_type) ) ) {
77 if(
nullptr != c && characteristic == *c ) {
85 std::string name =
"";
86 if( uuid_t::TypeSize::UUID16_SZ ==
type->getTypeSize() ) {
87 const uint16_t uuid16 = (
static_cast<const uuid16_t*
>(
type.get()))->value;
94std::string BTGattService::toShortString() const noexcept {
95 std::string name =
"";
96 if( uuid_t::TypeSize::UUID16_SZ ==
type->getTypeSize() ) {
97 const uint16_t uuid16 = (
static_cast<const uuid16_t*
>(
type.get()))->value;
Representing a Gatt Characteristic object from the GATTRole::Client perspective.
BTGattCharRef findGattChar(const jau::uuid_t &char_uuid) noexcept
Find a BTGattChar by its char_uuid.
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.
BTGattHandlerRef getGattHandlerUnchecked() const noexcept
BTDeviceRef getDeviceChecked() const
constexpr size_type size() const noexcept
Like std::vector::size().
std::string to_string(const alphabet &v) noexcept
std::shared_ptr< BTGattHandler > BTGattHandlerRef
std::shared_ptr< BTDevice > BTDeviceRef
std::string GattServiceTypeToString(const GattServiceType v) noexcept
GattServiceType
GATT Service Type, each encapsulating a set of Characteristics.
std::shared_ptr< BTGattChar > BTGattCharRef
std::string to_hexstring(value_type const &v) noexcept
Produce a lower-case hexadecimal string representation of the given pointer.
__pack(...): Produces MSVC, clang and gcc compatible lead-in and -out macros.