Table of Contents

Class SimulateAdvertisementScanEntry

Namespace
WebDriverBiDi.Bluetooth
Assembly
WebDriverBiDi.dll

Provides the data for a single simulated Bluetooth advertisement: the peripheral that sent it, the strength at which it was received, and the scan record it advertised.

public class SimulateAdvertisementScanEntry
Inheritance
SimulateAdvertisementScanEntry
Inherited Members

Constructors

SimulateAdvertisementScanEntry(string, double, ScanRecord)

Initializes a new instance of the SimulateAdvertisementScanEntry class.

public SimulateAdvertisementScanEntry(string deviceAddress, double receivedSignalStrengthIndicator, ScanRecord scanRecord)

Parameters

deviceAddress string

The physical address of the simulated Bluetooth peripheral.

receivedSignalStrengthIndicator double

The simulated strength of signal, as expressed in dBm.

scanRecord ScanRecord

The ScanRecord representing the data for this scan for Bluetooth devices.

Properties

DeviceAddress

Gets or sets the physical address of the simulated Bluetooth peripheral that sent this advertisement.

[JsonPropertyName("deviceAddress")]
public string DeviceAddress { get; set; }

Property Value

string

Remarks

The address identifies the peripheral exactly, rather than by prefix: the remote end looks it up among the adapter's simulated devices, and creates a device for the address if none exists yet.

Rssi

Gets or sets the received signal strength indicator (RSSI) of the simulated Bluetooth device, in dBm.

[JsonPropertyName("rssi")]
[JsonConverter(typeof(FixedDoubleJsonConverter))]
public double Rssi { get; set; }

Property Value

double

ScanRecord

Gets or sets the scan record data for this advertisement scan entry.

[JsonPropertyName("scanRecord")]
public ScanRecord ScanRecord { get; set; }

Property Value

ScanRecord