我需要支持多种设备,包括串行和BLE。当我将以下代码添加到Package.appxmanifest文件时,出现错误如何在Windows 8.1中将rfcomm和genericAttributeProfile设备功能添加到Package.appxmanifest。
无法激活Windows应用商店应用'blah.blah_blah!App'。激活请求失败,错误为'E_INVALIDARG'。
<m2:DeviceCapability Name="bluetooth.genericAttributeProfile">
<m2:Device Id="any">
<m2:Function Type="name:heartRate"/>
</m2:Device>
</m2:DeviceCapability>
<m2:DeviceCapability Name="bluetooth.rfcomm">
<m2:Device Id="any">
<m2:Function Type="name:serialPort"/>
</m2:Device>
</m2:DeviceCapability>