Table of Contents

Class SimulateCharacteristicResponseCommandParameters

Namespace
WebDriverBiDi.Bluetooth
Assembly
WebDriverBiDi.dll

Provides parameters for the bluetooth.simulateCharacteristicResponse command.

public class SimulateCharacteristicResponseCommandParameters : CommandParameters<SimulateCharacteristicResponseCommandResult>
Inheritance
SimulateCharacteristicResponseCommandParameters
Inherited Members

Constructors

SimulateCharacteristicResponseCommandParameters(string, string, string, string, SimulateCharacteristicResponseType, uint)

Initializes a new instance of the SimulateCharacteristicResponseCommandParameters class.

public SimulateCharacteristicResponseCommandParameters(string browsingContextId, string address, string serviceUuid, string characteristicUuid, SimulateCharacteristicResponseType type, uint code)

Parameters

browsingContextId string

The ID of the browsing context for which to simulate the characteristic response on the Bluetooth adapter.

address string

The address of the simulated device.

serviceUuid string

The UUID of the service to simulate.

characteristicUuid string

The UUID of the characteristic to simulate.

type SimulateCharacteristicResponseType

The SimulateCharacteristicResponseType value for the type of simulation for the characteristic response.

code uint

The code of the simulated characteristic response.

Properties

Address

Gets or sets the address of the device for which to simulate the characteristic response.

[JsonPropertyName("address")]
public string Address { get; set; }

Property Value

string

BrowsingContextId

Gets or sets the ID of the browsing context for which to simulate a characteristic response on the Bluetooth adapter.

[JsonPropertyName("context")]
public string BrowsingContextId { get; set; }

Property Value

string

CharacteristicUuid

Gets or sets the UUID of the characteristic to simulate.

[JsonPropertyName("characteristicUuid")]
public string CharacteristicUuid { get; set; }

Property Value

string

Code

Gets or sets the code of the simulated characteristic response.

[JsonPropertyName("code")]
public uint Code { get; set; }

Property Value

uint

Data

Gets the data for the simulated characteristic response.

[JsonIgnore]
public List<uint> Data { get; }

Property Value

List<uint>

Remarks

This property is optional in the protocol. An empty list means "not specified": the property is omitted from the JSON payload entirely, and the remote end's behavior for a response without data is implementation-defined; an empty array is never sent. Add entries to the list to populate it.

MethodName

Gets the method name of the command.

[JsonIgnore]
public override string MethodName { get; }

Property Value

string

ServiceUuid

Gets or sets the UUID of the service to simulate.

[JsonPropertyName("serviceUuid")]
public string ServiceUuid { get; set; }

Property Value

string

Type

Gets or sets the type of simulation of the characteristic response.

[JsonPropertyName("type")]
public SimulateCharacteristicResponseType Type { get; set; }

Property Value

SimulateCharacteristicResponseType