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
|