Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <bluetooth_scanner.hpp>
Public Member Functions | |
BluetoothScanner (BluetoothAdapter &adapter) | |
~BluetoothScanner () | |
error::KallistoDetailedResult | start (BluetoothScannerConfiguration &configuration, BluetoothScannerFilter &filter, BluetoothAdapter::ScanListener &listener) |
error::KallistoDetailedResult | stop () |
const BluetoothScannerConfiguration & | getConfiguration () |
const BluetoothScannerFilter & | getFilter () |
error::KallistoDetailedResult | setConfiguration (BluetoothScannerConfiguration &configuration) |
error::KallistoDetailedResult | setFilter (BluetoothScannerFilter &filter) |
Class that handles device discovery.
BluetoothScanner | ( | BluetoothAdapter & | adapter | ) |
Constructor.
~BluetoothScanner | ( | ) |
Destructor.
|
inline |
Get the current scan configuration.
|
inline |
Get the current scan filter.
error::KallistoDetailedResult setConfiguration | ( | BluetoothScannerConfiguration & | configuration | ) |
Updates the scanner configuration.
configuration | The scanner configuration. |
error::KallistoDetailedResult setFilter | ( | BluetoothScannerFilter & | filter | ) |
Updates the scanner filter.
filter | The scanner filter. |
error::KallistoDetailedResult start | ( | BluetoothScannerConfiguration & | configuration, |
BluetoothScannerFilter & | filter, | ||
BluetoothAdapter::ScanListener & | listener | ||
) |
Starts scanner work.
configuration | The scanner configuration. |
filter | The scanner filter. |
listener | Listener for scanner events. |
error::KallistoDetailedResult stop | ( | ) |
Stops scanner work. No new configurations will be accepted.