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
clientIdstringThe unique identifier of the requesting client.
serviceIdGuidThe service identifier containing the characteristic.
characteristicIdGuidThe characteristic identifier being read.
currentValueReadOnlyMemory<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
ClientId
Gets the unique identifier of the requesting client.
public string ClientId { get; }
Property Value
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
ServiceId
Gets the service identifier containing the characteristic.
public Guid ServiceId { get; }