Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <bluetooth_scanner_configuration.hpp>
Data Structures | |
class | Builder |
Public Types | |
enum | ScanConfiguration { ONE_SHOT, CYCLIC, CONTINUOUS, STOPPED } |
Public Member Functions | |
~BluetoothScannerConfiguration () | |
BluetoothScannerConfiguration (const BluetoothScannerConfiguration &configuration) | |
BluetoothScannerConfiguration & | operator= (const BluetoothScannerConfiguration &configuration) |
BluetoothScannerConfiguration (BluetoothScannerConfiguration &&configuration) | |
BluetoothScannerConfiguration & | operator= (BluetoothScannerConfiguration &&configuration) |
ScanConfiguration | getScanConfiguration () const |
std::chrono::seconds | getDuration () const |
std::chrono::seconds | getCycleDuration () const |
bool | getLegacyDiscovery () const |
Friends | |
class | Builder |
Class that handles holds a scanner configuration.
|
strong |
Available scan types.
They are not accessible to a developer. They are inferred according to the passed configurations to the Builder.
Enumerator | |
---|---|
ONE_SHOT | A single scan. The scanner will got to STOPPED state after a de.sensry.kallisto.service.listeners.events.SystemEventType#SCAN_STOPPED event. |
CYCLIC | The scanner will cycle continuously between scan on and off. |
CONTINUOUS | The scanning will be continuous. A new STOPPED configuration is needed to stop the scanning. |
STOPPED | The scanner is stopped. |
Destructor.
BluetoothScannerConfiguration | ( | const BluetoothScannerConfiguration & | configuration | ) |
Copy Constructor.
BluetoothScannerConfiguration | ( | BluetoothScannerConfiguration && | configuration | ) |
Move Constructor.
std::chrono::seconds getCycleDuration | ( | ) | const |
Get the configured scan cycle duration.
Represents the amount of time that the scanner waits after finishing a scan before starting a new scan.
std::chrono::seconds getDuration | ( | ) | const |
Get the configured scan duration.
bool getLegacyDiscovery | ( | ) | const |
Get if legacy device discovery is enabled.
If this is enabled, the scanner will connect to the device in order to discover the device features, if the advertising data doesn't use the firmware SDK Advertising Manager.
ScanConfiguration getScanConfiguration | ( | ) | const |
Get the configured scan configuration.
BluetoothScannerConfiguration& operator= | ( | const BluetoothScannerConfiguration & | configuration | ) |
Copy assigment operator.
BluetoothScannerConfiguration& operator= | ( | BluetoothScannerConfiguration && | configuration | ) |
Move assigment operator.