table of contents
ORG.BLUEZ.ADVERTISEMENTMONITOR(5) | Linux System Administration | ORG.BLUEZ.ADVERTISEMENTMONITOR(5) |
NAME¶
org.bluez.AdvertisementMonitor - BlueZ D-Bus AdvertisementMonitor API documentation
DESCRIPTION¶
This API allows an client to specify a job of monitoring advertisements by registering the root of hierarchy and then exposing advertisement monitors under the root with filtering conditions, thresholds of RSSI and timers of RSSI thresholds.
Once a monitoring job is activated by bluetoothd(8), the client can expect to get notified on the targeted advertisements no matter if there is an ongoing discovery session (see StartDiscovery() in org.bluez.Adapter(5)).
INTERFACE¶
- Service
- org.bluez
- Interface
- org.bluez.AdvertisementMonitor1 [experimental]
- Object path
- freely definable
Methods¶
void Release() [noreply]¶
- Monitor cannot be activated after it was exposed
- Monitor has been deactivated.
void Activate() [noreply]¶
void DeviceFound(object device) [noreply]¶
void DeviceLost(object device) [noreply]¶
Properties¶
string Type [read-only]¶
int16 RSSILowThreshold [read-only, optional]¶
int16 RSSIHighThreshold [read-only, optional]¶
uint16 RSSILowTimeout [read-only, optional]¶
uint16 RSSIHighTimeout [read-only, optional]¶
uint16 RSSISamplingPeriod [read-only, optional]¶
Possible values:
- 0
- All advertisement packets from in-range devices would be propagated.
- 255
- Only the first advertisement packet of in-range devices would be propagated. If the device becomes lost, then the first packet when it is found again will also be propagated.
- 1 to 254
- Advertisement packets would be grouped into 100ms * N time period. Packets in the same group will only be reported once, with the RSSI value being averaged out.
Currently this is unimplemented in user space, so the value is only used to be forwarded to the kernel.
array{(uint8, uint8, array{byte})} Patterns [read-only, optional]¶
The structure of a pattern contains the following:
- uint8 start_position
- The index in an AD data field where the search hould start. The beginning of an AD data field is index 0.
- uint8 AD_data_type
- See <https://www.bluetooth.com/specifications/assigned-numbers/> generic-access-profile/ for the possible allowed value.
- array{byte} content_of_pattern
- This is the value of the pattern. The maximum length of the bytes is 31.
October 2023 | BlueZ |