Kallisto Linux API
Library for interacting with Kallisto devices
BluetoothScanner Class Reference

#include <bluetooth_scanner.hpp>

Inheritance diagram for BluetoothScanner:
Collaboration diagram for BluetoothScanner:

Public Member Functions

 BluetoothScanner (BluetoothAdapter &adapter)
 
 ~BluetoothScanner ()
 
error::KallistoDetailedResult start (BluetoothScannerConfiguration &configuration, BluetoothScannerFilter &filter, BluetoothAdapter::ScanListener &listener)
 
error::KallistoDetailedResult stop ()
 
const BluetoothScannerConfigurationgetConfiguration ()
 
const BluetoothScannerFiltergetFilter ()
 
error::KallistoDetailedResult setConfiguration (BluetoothScannerConfiguration &configuration)
 
error::KallistoDetailedResult setFilter (BluetoothScannerFilter &filter)
 

Detailed Description

Class that handles device discovery.

Constructor & Destructor Documentation

◆ BluetoothScanner()

Constructor.

◆ ~BluetoothScanner()

Destructor.

Member Function Documentation

◆ getConfiguration()

const BluetoothScannerConfiguration& getConfiguration ( )
inline

Get the current scan configuration.

Returns
The current configuration.

◆ getFilter()

const BluetoothScannerFilter& getFilter ( )
inline

Get the current scan filter.

Returns
The current filter.
Here is the call graph for this function:

◆ setConfiguration()

error::KallistoDetailedResult setConfiguration ( BluetoothScannerConfiguration configuration)

Updates the scanner configuration.

Parameters
configurationThe scanner configuration.
Returns
A detailed result.

◆ setFilter()

Updates the scanner filter.

Parameters
filterThe scanner filter.
Returns
A detailed result.

◆ start()

Starts scanner work.

Parameters
configurationThe scanner configuration.
filterThe scanner filter.
listenerListener for scanner events.
Returns
A detailed result.

◆ stop()

Stops scanner work. No new configurations will be accepted.

Returns
A detailed result.

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