Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <bluetooth_dispatcher.hpp>
Data Structures | |
class | NotificationListener |
Public Member Functions | |
virtual error::KallistoDetailedResult | getRssi (int &buffer)=0 |
virtual std::vector< std::string > | getServices ()=0 |
virtual std::vector< std::string > | getCharacteristics (std::string service_uuid)=0 |
virtual error::KallistoDetailedResult | readCharacteristic (std::string service_uuid, std::string characteristic_uuid, std::vector< unsigned char > &buffer)=0 |
virtual error::KallistoDetailedResult | writeCharacteristic (std::string service_uuid, std::string characteristic_uuid, std::vector< unsigned char > &buffer)=0 |
virtual error::KallistoDetailedResult | enableNotification (std::string service_uuid, std::string characteristic_uuid, NotificationListener &listener)=0 |
virtual error::KallistoDetailedResult | disableNotification (std::string service_uuid, std::string characteristic_uuid, NotificationListener &listener)=0 |
Protected Member Functions | |
BluetoothDispatcher () | |
virtual | ~BluetoothDispatcher () |
BluetoothDispatcher (BluetoothDispatcher const &)=delete | |
BluetoothDispatcher (BluetoothDispatcher &&)=delete | |
void | operator= (BluetoothDispatcher const &)=delete |
void | operator= (BluetoothDispatcher &&)=delete |
Interface given to Sensors in order to interact with the Bluetooth.
|
protected |
Constructor
|
protectedvirtual |
Destructor
|
protecteddelete |
Remove copy and move.
|
pure virtual |
Disables notifications of the the characteristic with the passed UUID of the service with the passed UUID.
service_uuid | The UUID of the service containing the characteristic that should have its' notifications disabled. |
characteristic_uuid | The UUID of the characteristic that should have its' notifications disabled. |
listener | The listener used in enableNotification(std::string, std::string, NotificationListener) call. |
Implemented in BluetoothDevice.
|
pure virtual |
Enables notifications of the the characteristic with the passed UUID of the service with the passed UUID.
service_uuid | The UUID of the service containing the characteristic that should have its' notifications enabled. |
characteristic_uuid | The UUID of the characteristic that should have its' notifications enabled. |
listener | The listener to receive notifications. |
Implemented in BluetoothDevice.
|
pure virtual |
Get the remote device BLE characteristic list of the service with the passed UUID.
service_uuid | The UUID of the service whose characteristic should be returned. |
Implemented in KallistoImpl, and BluetoothDevice.
|
pure virtual |
Get the current RSSI value.
[out] | buffer | The RSSI value.. |
Implemented in KallistoImpl, and BluetoothDevice.
|
pure virtual |
Get the remote device BLE service list.
Implemented in KallistoImpl, and BluetoothDevice.
|
pure virtual |
Reads the characteristic with the passed UUID of the service with the passed UUID.
[in] | service_uuid | The UUID of the service containing the characteristic that should be read. |
[in] | characteristic_uuid | The UUID of the characteristic that should be read. |
[out] | buffer | The data read. |
Implemented in KallistoImpl, and BluetoothDevice.
|
pure virtual |
Writes the passed data to the characteristic with the passed UUID of the service with the passed UUID.
[in] | service_uuid | The UUID of the service containing the characteristic that should be written. |
[in] | characteristic_uuid | The UUID of the characteristic that should be written. |
[in] | buffer | A byte buffer with the data to be written. |
Implemented in KallistoImpl, and BluetoothDevice.