pub struct Monitor {
pub monitor_type: Type,
pub rssi_low_threshold: Option<i16>,
pub rssi_high_threshold: Option<i16>,
pub rssi_low_timeout: Option<Duration>,
pub rssi_high_timeout: Option<Duration>,
pub rssi_sampling_period: Option<RssiSamplingPeriod>,
pub patterns: Option<Vec<Pattern>>,
/* private fields */
}
bluetoothd
only.Expand description
Advertisement monitor specification.
Specifies an advertisement monitor target.
Use MonitorManager::register
to add a monitor target.
Fields§
§monitor_type: Type
The type of the monitor.
rssi_low_threshold: Option<i16>
Used in conjunction with RSSILowTimeout to determine whether a device becomes out-of-range.
Valid range is -127 to 20 (dBm).
rssi_high_threshold: Option<i16>
Used in conjunction with RSSIHighTimeout to determine whether a device becomes in-range.
Valid range is -127 to 20 (dBm).
rssi_low_timeout: Option<Duration>
The time it takes to consider a device as out-of-range.
If this many seconds elapses without receiving any signal at least as strong as RSSILowThreshold, a currently in-range device will be considered as out-of-range (lost).
Valid range is 1 to 300 (seconds).
rssi_high_timeout: Option<Duration>
The time it takes to consider a device as in-range.
If this many seconds elapses while we continuously receive signals at least as strong as RSSIHighThreshold, a currently out-of-range device will be considered as in-range (found).
Valid range is 1 to 300 (seconds).
rssi_sampling_period: Option<RssiSamplingPeriod>
Grouping rules on how to propagate the received advertisement packets to the client.
patterns: Option<Vec<Pattern>>
Patterns to match.
Required if monitor_type
is
Type::OrPatterns
.