Table of Contents

Class CharacteristicReadRequestEventArgs

Namespace
Bluetooth.Abstractions.Broadcasting.EventArgs
Assembly
Bluetooth.Abstractions.Broadcasting.dll

Event arguments for when a client requests to read a characteristic value.

public class CharacteristicReadRequestEventArgs : EventArgs
Inheritance
CharacteristicReadRequestEventArgs
Inherited Members

Constructors

CharacteristicReadRequestEventArgs(string, Guid, Guid, ReadOnlyMemory<byte>)

Initializes a new instance of the CharacteristicReadRequestEventArgs class.

public CharacteristicReadRequestEventArgs(string clientId, Guid serviceId, Guid characteristicId, ReadOnlyMemory<byte> currentValue)

Parameters

clientId string

The unique identifier of the requesting client.

serviceId Guid

The service identifier containing the characteristic.

characteristicId Guid

The characteristic identifier being read.

currentValue ReadOnlyMemory<byte>

The current value of the characteristic, used as the default response.

Properties

CharacteristicId

Gets the characteristic identifier being read.

public Guid CharacteristicId { get; }

Property Value

Guid

ClientId

Gets the unique identifier of the requesting client.

public string ClientId { get; }

Property Value

string

ResponseValue

Gets or sets the value to return to the client. Defaults to the characteristic's current value. Set this property to override the response.

public ReadOnlyMemory<byte> ResponseValue { get; set; }

Property Value

ReadOnlyMemory<byte>

ServiceId

Gets the service identifier containing the characteristic.

public Guid ServiceId { get; }

Property Value

Guid