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
clientIdstringThe unique identifier of the requesting client.
serviceIdGuidThe service identifier containing the characteristic.
characteristicIdGuidThe characteristic identifier being written to.
valueReadOnlyMemory<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
CharacteristicId
Gets the characteristic identifier being written to.
public Guid CharacteristicId { get; }
Property Value
ClientId
Gets the unique identifier of the requesting client.
public string ClientId { get; }
Property Value
ServiceId
Gets the service identifier containing the characteristic.
public Guid ServiceId { get; }
Property Value
Value
Gets the value being written.
public ReadOnlyMemory<byte> Value { get; }