GattCharacteristic.WriteValueAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteValueAsync(IBuffer) |
Performs a Characteristic Value write to a Bluetooth LE device. |
WriteValueAsync(IBuffer, GattWriteOption) |
Performs a Characteristic Value write to a Bluetooth LE device. |
WriteValueAsync(IBuffer)
Performs a Characteristic Value write to a Bluetooth LE device.
public:
virtual IAsyncOperation<GattCommunicationStatus> ^ WriteValueAsync(IBuffer ^ value) = WriteValueAsync;
/// [Windows.Foundation.Metadata.Overload("WriteValueAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer const& value);
[Windows.Foundation.Metadata.Overload("WriteValueAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer value);
function writeValueAsync(value)
Public Function WriteValueAsync (value As IBuffer) As IAsyncOperation(Of GattCommunicationStatus)
Parameters
- value
- IBuffer
A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.
Returns
The object that manages the asynchronous operation, which, upon completion, returns the status with which the operation completed.
- Attributes
Windows requirements
App capabilities |
bluetooth
|
See also
Applies to
WriteValueAsync(IBuffer, GattWriteOption)
Performs a Characteristic Value write to a Bluetooth LE device.
public:
virtual IAsyncOperation<GattCommunicationStatus> ^ WriteValueAsync(IBuffer ^ value, GattWriteOption writeOption) = WriteValueAsync;
/// [Windows.Foundation.Metadata.Overload("WriteValueWithOptionAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer const& value, GattWriteOption const& writeOption);
[Windows.Foundation.Metadata.Overload("WriteValueWithOptionAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteValueAsync(IBuffer value, GattWriteOption writeOption);
function writeValueAsync(value, writeOption)
Public Function WriteValueAsync (value As IBuffer, writeOption As GattWriteOption) As IAsyncOperation(Of GattCommunicationStatus)
Parameters
- value
- IBuffer
A Windows.Storage.Streams.IBuffer object which contains the data to be written to the Bluetooth LE device.
- writeOption
- GattWriteOption
Specifies what type of GATT write should be performed.
Returns
The object that manages the asynchronous operation, which, upon completion, returns the status with which the operation completed.
- Attributes
Windows requirements
App capabilities |
bluetooth
|