GattReadRequest GattReadRequest GattReadRequest GattReadRequest Class

Definition

This class represents a Bluetooth GATT read request.

public : sealed class GattReadRequest : IGattReadRequestpublic sealed class GattReadRequest : IGattReadRequestPublic NotInheritable Class GattReadRequest Implements IGattReadRequest// 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

Length Length Length Length

Gets the buffer length of the read request.

public : unsigned int Length { get; }public uint Length { get; }Public ReadOnly Property Length As uint// You can use this property in JavaScript.
Value
unsigned int uint uint uint

The buffer length of the read request.

Offset Offset Offset Offset

Gets the read request 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 read request offset.

State State State State

Gets the read request state.

public : GattRequestState State { get; }public GattRequestState State { get; }Public ReadOnly Property State As GattRequestState// You can use this property in JavaScript.

Methods

RespondWithProtocolError(Byte) RespondWithProtocolError(Byte) RespondWithProtocolError(Byte) RespondWithProtocolError(Byte)

Responds to the read request 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 protocol error to send. A list of errors with the byte values can be found in GattProtocolError.

RespondWithValue(IBuffer) RespondWithValue(IBuffer) RespondWithValue(IBuffer) RespondWithValue(IBuffer)

Responds to a read request with a value.

public : void RespondWithValue(IBuffer value)public void RespondWithValue(IBuffer value)Public Function RespondWithValue(value As IBuffer) As void// You can use this method in JavaScript.
Parameters
value
IBuffer IBuffer IBuffer IBuffer

The value to respond with.

Events

StateChanged StateChanged StateChanged StateChanged

This is an event that is triggered when the read request state was changed.

public : event TypedEventHandler StateChanged<GattReadRequest,  GattRequestStateChangedEventArgs>public event TypedEventHandler StateChanged<GattReadRequest,  GattRequestStateChangedEventArgs>Public Event StateChanged<GattReadRequest,  GattRequestStateChangedEventArgs>// You can use this event in JavaScript.