WriteResponse Event
Fired when the server acknowledges a successful value write request.
Syntax
public event OnWriteResponseHandler OnWriteResponse; public delegate void OnWriteResponseHandler(object sender, BleclientWriteResponseEventArgs e); public class BleclientWriteResponseEventArgs : EventArgs { public string ServiceId { get; } public string CharacteristicId { get; } public string DescriptorId { get; } public string Uuid { get; } public string Description { get; } }
Public Event OnWriteResponse As OnWriteResponseHandler Public Delegate Sub OnWriteResponseHandler(sender As Object, e As BleclientWriteResponseEventArgs) Public Class BleclientWriteResponseEventArgs Inherits EventArgs Public ReadOnly Property ServiceId As String Public ReadOnly Property CharacteristicId As String Public ReadOnly Property DescriptorId As String Public ReadOnly Property Uuid As String Public ReadOnly Property Description As String End Class
Remarks
This event is fired when the server acknowledges a successful value write request for a characteristic or descriptor.
ServiceId holds the Id of the service.
CharacteristicId holds the Id of the characteristic.
DescriptorId holds the Id of the descriptor. This is only populated when a descriptor value is written.
Uuid and Description are the UUID and Bluetooth SIG user-friendly name (if one is defined) of the characteristic or descriptor.
Note that this event is not fired if the write request was sent using PostValue, regardless of the outcome.
Refer to the WriteValue method for more information.