|
Kallisto Linux API
Library for interacting with Kallisto devices
|
Public Member Functions | |
| Builder () | |
| ~Builder () | |
| Builder & | continuous () |
| Builder & | stop () |
| Builder & | withDuration (std::chrono::seconds duration) |
| Builder & | withShortDuration () |
| Builder & | withMediumDuration () |
| Builder & | withLongDuration () |
| Builder & | withCycle (std::chrono::seconds cycle_time) |
| Builder & | withResponsiveCycle () |
| Builder & | withBalancedCycle () |
| Builder & | withLowPowerCycle () |
| Builder & | withLegacyDiscoveryFallback () |
| BluetoothScannerConfiguration | build () |
| BluetoothScannerConfiguration | buildDefault () |
| BluetoothScannerConfiguration build | ( | ) |
Builds a new instance of a BluetoothScannerConfiguration using the configured parameters.
| BluetoothScannerConfiguration buildDefault | ( | ) |
Builds a new instance of a BluetoothScannerConfiguration using the default parameters.
Equivalent to:
| Builder& continuous | ( | ) |
Set the scan to Continuous.
Will only be stopped with a Stop configuration.
| Builder& stop | ( | ) |
| Builder& withBalancedCycle | ( | ) |
Sets the duration time to BALANCED_SCANNER seconds.
Helper method that call withCycle(int).
| Builder& withCycle | ( | std::chrono::seconds | cycle_time | ) |
Set the cycle duration time.
Represents the amount of time that the scanner waits after finishing a scan before starting a new scan.
Will set the mode to Cyclic if the configuration was not explicitly configured by continuous() or stop() calls. If duration is not set, will call withShortDuration().
| cycleTime | The desired scan cycle duration, in seconds. Ignored if <= 0 |
| Builder& withDuration | ( | std::chrono::seconds | duration | ) |
Set the scan duration time.
Will set the mode to One Shot if the configuration was not explicitly configured by continuous() or stop() calls and cycle time is not set.
| duration | The desired scan duration, in seconds. Ignored if <= 0 |
| Builder& withLegacyDiscoveryFallback | ( | ) |
Sets if legacy Kallisto device discovery is enabled.
If this is enabled, the scanner will connect to the device in order to discoverFeatures the device features, if the advertising data doesn't use the firmware SDK Advertising Manager.
Disabled by default.
| Builder& withLongDuration | ( | ) |
Sets the duration time to LONG_SCAN seconds.
Helper method that call withDuration(int).
| Builder& withLowPowerCycle | ( | ) |
Sets the duration time to LOW_POWER_SCANNER seconds.
Helper method that call withCycle(int).
| Builder& withMediumDuration | ( | ) |
Sets the duration time to MEDIUM_SCAN seconds.
Helper method that call withDuration(int).
| Builder& withResponsiveCycle | ( | ) |
Sets the duration time to RESPONSIVE_SCANNER seconds.
Helper method that call withCycle(int).
| Builder& withShortDuration | ( | ) |
Sets the duration time to SHORT_SCAN seconds.
Helper method that call withDuration().