GattReadResult
GattReadResult
GattReadResult
GattReadResult
Class
Definition
Represents the result of an asynchronous read operation of a GATT Characteristic or Descriptor value.
public : sealed class GattReadResult : IGattReadResult, IGattReadResult2public sealed class GattReadResult : IGattReadResult, IGattReadResult2Public NotInheritable Class GattReadResult Implements IGattReadResult, IGattReadResult2// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
Remarks
One of the ReadValueAsync methods is used to retrieve a GattReadResult object.
The Status property on the GattReadResult returned indicates if the result of the operation was successful.
Properties
ProtocolError ProtocolError ProtocolError ProtocolError
Gets the protocol error.
public : IReference<byte> ProtocolError { get; }public Nullable<byte> ProtocolError { get; }Public ReadOnly Property ProtocolError As Nullable<byte>// You can use this property in JavaScript.
- Value
- IReference<byte> Nullable<byte> Nullable<byte> Nullable<byte>
The protocol error.
Additional features and requirements
| Device family |
Windows 10 Creators Update (introduced v10.0.15063.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v4)
|
Status Status Status Status
Gets the status of an asynchronous operation.
public : GattCommunicationStatus Status { get; }public GattCommunicationStatus Status { get; }Public ReadOnly Property Status As GattCommunicationStatus// You can use this property in JavaScript.
- Value
- GattCommunicationStatus GattCommunicationStatus GattCommunicationStatus GattCommunicationStatus
The status of the asynchronous operation.