42 #ifndef BLUETOOTH_DISPATCHER_HPP 43 #define BLUETOOTH_DISPATCHER_HPP 50 #include "../../util/error/kallisto_error.hpp" 58 class BluetoothDispatcher {
82 class NotificationListener {
112 virtual void onNotification(std::string address, std::string service_uuid, std::string characteristic_uuid,
const std::vector<unsigned char>& values) = 0;
120 virtual error::KallistoDetailedResult
getRssi(
int& buffer) = 0;
126 virtual std::vector<std::string>
getServices() = 0;
143 virtual error::KallistoDetailedResult
readCharacteristic(std::string service_uuid, std::string characteristic_uuid, std::vector<unsigned char>& buffer) = 0;
152 virtual error::KallistoDetailedResult
writeCharacteristic(std::string service_uuid, std::string characteristic_uuid, std::vector<unsigned char>& buffer) = 0;
176 #endif // BLUETOOTH_DISPATCHER_HPP virtual ~NotificationListener()
Definition: bluetooth_adapter.hpp:52
virtual std::vector< std::string > getServices()=0
virtual std::vector< std::string > getCharacteristics(std::string service_uuid)=0
virtual error::KallistoDetailedResult writeCharacteristic(std::string service_uuid, std::string characteristic_uuid, std::vector< unsigned char > &buffer)=0
virtual ~BluetoothDispatcher()
virtual error::KallistoDetailedResult disableNotification(std::string service_uuid, std::string characteristic_uuid, NotificationListener &listener)=0
virtual error::KallistoDetailedResult getRssi(int &buffer)=0
virtual void onNotification(std::string address, std::string service_uuid, std::string characteristic_uuid, const std::vector< unsigned char > &values)=0
virtual error::KallistoDetailedResult enableNotification(std::string service_uuid, std::string characteristic_uuid, NotificationListener &listener)=0
virtual error::KallistoDetailedResult readCharacteristic(std::string service_uuid, std::string characteristic_uuid, std::vector< unsigned char > &buffer)=0