GattWriteRequest
GattWriteRequest
GattWriteRequest
GattWriteRequest
Class
Definition
This class represents a GATT write request.
public : sealed class GattWriteRequest : IGattWriteRequestpublic sealed class GattWriteRequest : IGattWriteRequestPublic NotInheritable Class GattWriteRequest Implements IGattWriteRequest// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Properties
Offset Offset Offset Offset
Gets the offset.
public : unsigned int Offset { get; }public uint Offset { get; }Public ReadOnly Property Offset As uint// You can use this property in JavaScript.
- Value
- unsigned int uint uint uint
The offset.
Option Option Option Option
Gets the write request option.
public : GattWriteOption Option { get; }public GattWriteOption Option { get; }Public ReadOnly Property Option As GattWriteOption// You can use this property in JavaScript.
The write request option.
Methods
Respond() Respond() Respond() Respond()
Responds to the write request.
public : void Respond()public void Respond()Public Function Respond() As void// You can use this method in JavaScript.
RespondWithProtocolError(Byte) RespondWithProtocolError(Byte) RespondWithProtocolError(Byte) RespondWithProtocolError(Byte)
Responds with a protocol error.
public : void RespondWithProtocolError(Byte protocolError)public void RespondWithProtocolError(Byte protocolError)Public Function RespondWithProtocolError(protocolError As Byte) As void// You can use this method in JavaScript.
Parameters
- protocolError
- Byte Byte Byte Byte
The GATT protocol error.
Events
StateChanged StateChanged StateChanged StateChanged
An event that is triggered when the state of the write request has changed.
public : event TypedEventHandler StateChanged<GattWriteRequest, GattRequestStateChangedEventArgs>public event TypedEventHandler StateChanged<GattWriteRequest, GattRequestStateChangedEventArgs>Public Event StateChanged<GattWriteRequest, GattRequestStateChangedEventArgs>// You can use this event in JavaScript.