42 #ifndef BLUETOOTH_SCANNER_CONFIGURATION_HPP_ 43 #define BLUETOOTH_SCANNER_CONFIGURATION_HPP_ 55 #define MAX_DURATION std::chrono::seconds(60) 60 #define MAX_CYCLE_DURATION std::chrono::seconds(3600) 66 #define SHORT_SCAN std::chrono::seconds(5) 70 #define MEDIUM_SCAN std::chrono::seconds(10) 74 #define LONG_SCAN std::chrono::seconds(20) 80 #define RESPONSIVE_SCANNER std::chrono::seconds(5) 84 #define BALANCED_SCANNER std::chrono::seconds(15) 88 #define LOW_POWER_SCANNER std::chrono::seconds(60) 93 class BluetoothScannerConfiguration {
130 std::chrono::seconds m_duration;
133 std::chrono::seconds m_cycle_duration;
136 bool m_legacy_discovery;
141 BluetoothScannerConfiguration(
ScanConfiguration scan_configuration, std::chrono::seconds scan_duration, std::chrono::seconds cycle_duration,
bool legacy_discovery);
152 BluetoothScannerConfiguration(
const BluetoothScannerConfiguration& configuration);
157 BluetoothScannerConfiguration&
operator=(
const BluetoothScannerConfiguration& configuration);
162 BluetoothScannerConfiguration(BluetoothScannerConfiguration&& configuration);
167 BluetoothScannerConfiguration&
operator=(BluetoothScannerConfiguration&& configuration);
209 bool m_configuration_explicit =
false;
212 std::chrono::seconds m_duration = std::chrono::seconds(0);
215 std::chrono::seconds m_cycle_duration = std::chrono::seconds(0);
218 bool m_legacy_discovery =
false;
269 Builder& withDuration(std::chrono::seconds duration);
313 Builder& withCycle(std::chrono::seconds cycle_time);
322 Builder& withResponsiveCycle();
352 Builder& withLegacyDiscoveryFallback();
Definition: bluetooth_adapter.hpp:52
Definition: bluetooth_scanner_configuration.hpp:202
Definition: bluetooth_scanner_configuration.hpp:92
std::chrono::seconds getCycleDuration() const
ScanConfiguration
Definition: bluetooth_scanner_configuration.hpp:103
bool getLegacyDiscovery() const
~BluetoothScannerConfiguration()
std::chrono::seconds getDuration() const
ScanConfiguration getScanConfiguration() const
BluetoothScannerConfiguration & operator=(const BluetoothScannerConfiguration &configuration)