Kallisto Linux API
Library for interacting with Kallisto devices
BluetoothDispatcher::NotificationListener Class Referenceabstract

#include <bluetooth_dispatcher.hpp>

Inheritance diagram for BluetoothDispatcher::NotificationListener:

Public Member Functions

virtual void onNotification (std::string address, std::string service_uuid, std::string characteristic_uuid, const std::vector< unsigned char > &values)=0
 

Protected Member Functions

 NotificationListener ()
 
virtual ~NotificationListener ()
 
 NotificationListener (NotificationListener const &)=delete
 
 NotificationListener (NotificationListener &&)=delete
 
void operator= (NotificationListener const &)=delete
 
void operator= (NotificationListener &&)=delete
 

Detailed Description

Callback listener interface for sensor events.

Constructor & Destructor Documentation

◆ NotificationListener() [1/2]

NotificationListener ( )
protected

Constructor

◆ ~NotificationListener()

virtual ~NotificationListener ( )
protectedvirtual

Destructor

◆ NotificationListener() [2/2]

NotificationListener ( NotificationListener const &  )
protecteddelete

Remove copy and move.

Member Function Documentation

◆ onNotification()

virtual void onNotification ( std::string  address,
std::string  service_uuid,
std::string  characteristic_uuid,
const std::vector< unsigned char > &  values 
)
pure virtual

Called when there is a new notification of the characteristic enabled with enableNotification(UUID, UUID, NotificationListener) call.

Parameters
addressThe mac address of the device that generated this event.
serviceUuidThe UUID of the service that contains the characteristic that generated this event.
characteristicUuidThe UUID of the characteristic that generated this event.
valuesA byte buffer with the new values of the characteristics.

Implemented in BatteryChargingSensor, BatterySocSensor, and KallistoSensor.


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