BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::HciConnection Class Referenceabstract

The interface class represents connection with BLE device. More...

#include <HciConnection.h>

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

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 &notifyUuid, const Poco::UUID &writeUuid, const std::vector< unsigned char > &value, const Poco::Timespan &notifyTimeout)=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...
 

Detailed Description

The interface class represents connection with BLE device.

Member Function Documentation

virtual std::vector<unsigned char> BeeeOn::HciConnection::notifiedWrite ( const Poco::UUID &  notifyUuid,
const Poco::UUID &  writeUuid,
const std::vector< unsigned char > &  value,
const Poco::Timespan &  notifyTimeout 
)
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.

Exceptions
IOExceptionin case of a failure
NotFoundExceptionwhen the characteristic not found
TimeoutExceptionwhen the data is not recieved within the certain timeout

Implemented in BeeeOn::DBusHciConnection.

virtual std::vector<unsigned char> BeeeOn::HciConnection::read ( const Poco::UUID &  uuid)
pure virtual

Sends read request to device defined by MAC address. The read characteristic is defined by UUID of characteristic.

Exceptions
IOExceptionin case of a failure
NotFoundExceptionwhen the characteristic not found
TimeoutExceptionwhen the services not resolved

Implemented in BeeeOn::DBusHciConnection.

virtual void BeeeOn::HciConnection::write ( const Poco::UUID &  uuid,
const std::vector< unsigned char > &  value 
)
pure virtual

Sends write request to device defined by MAC address. The modified characteristic is defined by UUID of characteristic.

Exceptions
IOExceptionin case of a failure
NotFoundExceptionwhen the characteristic not found
TimeoutExceptionwhen the services not resolved

Implemented in BeeeOn::DBusHciConnection.


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