BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
The class represents connection with Bluetooth Low energy device. It allows sending read/write requests. More...
#include <DBusHciConnection.h>
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 ¬ifyUuid, const Poco::UUID &writeUuid, const std::vector< unsigned char > &value, const Poco::Timespan ¬ifyTimeout) 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. | |
The class represents connection with Bluetooth Low energy device. It allows sending read/write requests.