Table of Contents

Class CharacteristicWriteRequestEventArgs

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

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

public class CharacteristicWriteRequestEventArgs : EventArgs
Inheritance
CharacteristicWriteRequestEventArgs
Inherited Members

Constructors

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

Initializes a new instance of the CharacteristicWriteRequestEventArgs class.

public CharacteristicWriteRequestEventArgs(string clientId, Guid serviceId, Guid characteristicId, ReadOnlyMemory<byte> value)

Parameters

clientId string

The unique identifier of the requesting client.

serviceId Guid

The service identifier containing the characteristic.

characteristicId Guid

The characteristic identifier being written to.

value ReadOnlyMemory<byte>

The value being written.

Properties

Accept

Gets or sets a value indicating whether the write request is accepted. Defaults to true. Set to false to reject the write and prevent the characteristic value from being updated.

public bool Accept { get; set; }

Property Value

bool

CharacteristicId

Gets the characteristic identifier being written to.

public Guid CharacteristicId { get; }

Property Value

Guid

ClientId

Gets the unique identifier of the requesting client.

public string ClientId { get; }

Property Value

string

ServiceId

Gets the service identifier containing the characteristic.

public Guid ServiceId { get; }

Property Value

Guid

Value

Gets the value being written.

public ReadOnlyMemory<byte> Value { get; }

Property Value

ReadOnlyMemory<byte>