26 #include "BluetoothObject.hpp" 27 #include "BluetoothManager.hpp" 28 #include "BluetoothGattCharacteristic.hpp" 33 typedef struct _Object Object;
35 typedef struct _GattService1 GattService1;
45 friend class tinyb::BluetoothEventManager;
55 static std::unique_ptr<BluetoothGattService> make(Object *
object,
56 BluetoothType type = BluetoothType::GATT_SERVICE,
57 std::string *name =
nullptr,
58 std::string *identifier =
nullptr,
63 static std::string java_class() {
64 return std::string(JAVA_PACKAGE
"/BluetoothGattService");
66 static BluetoothType class_type() {
return BluetoothType::GATT_SERVICE; }
77 std::unique_ptr<BluetoothGattCharacteristic> find(
78 std::string *identifier,
79 std::chrono::milliseconds timeout = std::chrono::milliseconds::zero())
Definition: BluetoothObject.hpp:63
std::vector< std::unique_ptr< BluetoothGattCharacteristic > > get_characteristics()
virtual BluetoothType get_bluetooth_type() const
static BluetoothManager * get_bluetooth_manager()
std::unique_ptr< T > find(std::string *name, std::string *identifier, BluetoothObject *parent, std::chrono::milliseconds timeout=std::chrono::milliseconds::zero())
Definition: BluetoothManager.hpp:113
virtual std::string get_class_name() const
BluetoothDevice get_device()
Definition: BluetoothGattService.hpp:41
virtual std::string get_object_path() const
Definition: BluetoothManager.hpp:31
virtual BluetoothGattService * clone() const
virtual std::string get_java_class() const
Definition: BluetoothGattCharacteristic.hpp:44
Definition: BluetoothDevice.hpp:45