BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
The interface class represents connection with BLE device. More...
#include <HciConnection.h>
Public Types | |
typedef Poco::SharedPtr < HciConnection > | Ptr |
Public Member Functions | |
virtual std::vector< unsigned char > | read (const Poco::UUID &uuid)=0 |
Sends read request to device defined by MAC address. The read characteristic is defined by UUID of characteristic. More... | |
virtual void | write (const Poco::UUID &uuid, const std::vector< unsigned char > &value)=0 |
Sends write request to device defined by MAC address. The modified characteristic is defined by UUID of characteristic. More... | |
virtual std::vector< unsigned char > | notifiedWrite (const Poco::UUID ¬ifyUuid, const Poco::UUID &writeUuid, const std::vector< unsigned char > &value, const Poco::Timespan ¬ifyTimeout)=0 |
The method returns data from the given notifying characteristic to which the device sends data based on sending the message to another given characteristic. More... | |
The interface class represents connection with BLE device.
|
pure virtual |
The method returns data from the given notifying characteristic to which the device sends data based on sending the message to another given characteristic.
IOException | in case of a failure |
NotFoundException | when the characteristic not found |
TimeoutException | when the data is not recieved within the certain timeout |
Implemented in BeeeOn::DBusHciConnection.
|
pure virtual |
Sends read request to device defined by MAC address. The read characteristic is defined by UUID of characteristic.
IOException | in case of a failure |
NotFoundException | when the characteristic not found |
TimeoutException | when the services not resolved |
Implemented in BeeeOn::DBusHciConnection.
|
pure virtual |
Sends write request to device defined by MAC address. The modified characteristic is defined by UUID of characteristic.
IOException | in case of a failure |
NotFoundException | when the characteristic not found |
TimeoutException | when the services not resolved |
Implemented in BeeeOn::DBusHciConnection.