BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Protected Member Functions
BeeeOn::DBusHciConnection Class Reference

The class represents connection with Bluetooth Low energy device. It allows sending read/write requests. More...

#include <DBusHciConnection.h>

Inheritance diagram for BeeeOn::DBusHciConnection:
BeeeOn::HciConnection BeeeOn::Loggable

Public Types

typedef Poco::SharedPtr
< DBusHciConnection
Ptr
 
- Public Types inherited from BeeeOn::HciConnection
typedef Poco::SharedPtr
< HciConnection
Ptr
 

Public Member Functions

 DBusHciConnection (const std::string &hciName, GlibPtr< OrgBluezDevice1 > device, const Poco::Timespan &timeout)
 
std::vector< unsigned char > read (const Poco::UUID &uuid) override
 Reads value from the GATT characteristic defined by UUID.
 
void write (const Poco::UUID &uuid, const std::vector< unsigned char > &value) override
 Writes value to the GATT characteristic defined by UUID.
 
std::vector< unsigned char > notifiedWrite (const Poco::UUID &notifyUuid, const Poco::UUID &writeUuid, const std::vector< unsigned char > &value, const Poco::Timespan &notifyTimeout) override
 The method starts notifying the characteristic given by notifyUuid. The callback is connected to signal property changed of the notifying characteristic. Then the given data are sent to the characteristic defined by writeUuid. After that it waits for a maximum of notifyTimeout for the data to be recieved.
 

Static Protected Member Functions

static gboolean onDeviceServicesResolved (OrgBluezDevice1 *device, GVariant *properties, const gchar *const *invalidatedProperties, gpointer userData)
 
static gboolean onCharacteristicValueChanged (OrgBluezGattCharacteristic1 *, GVariant *properties, const gchar *const *, gpointer userData)
 

Detailed Description

The class represents connection with Bluetooth Low energy device. It allows sending read/write requests.


The documentation for this class was generated from the following files: