GattCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將 ClientCharacteristicConfigurationDescriptor 寫入藍牙 LE 裝置,如果要寫入的值代表指示或通知,且已登錄 ValueChanged 事件處理常式,則可讓您從裝置接收 ValueChanged 事件。
public:
virtual IAsyncOperation<GattCommunicationStatus> ^ WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue) = WriteClientCharacteristicConfigurationDescriptorAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattCommunicationStatus> WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue const& clientCharacteristicConfigurationDescriptorValue);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattCommunicationStatus> WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue clientCharacteristicConfigurationDescriptorValue);
function writeClientCharacteristicConfigurationDescriptorAsync(clientCharacteristicConfigurationDescriptorValue)
Public Function WriteClientCharacteristicConfigurationDescriptorAsync (clientCharacteristicConfigurationDescriptorValue As GattClientCharacteristicConfigurationDescriptorValue) As IAsyncOperation(Of GattCommunicationStatus)
參數
- clientCharacteristicConfigurationDescriptorValue
- GattClientCharacteristicConfigurationDescriptorValue
指定這個 Characteristic 物件的 ClientCharacteristicConfigurationDescriptor 的新值。
傳回
管理非同步作業的物件會在完成時傳回作業完成的狀態。
- 屬性
Windows 需求
應用程式功能 |
bluetooth
|