每个人都写道,这种方法是可行的:
<DeviceCapability Name="proximity" />
<m2:DeviceCapability Name="bluetooth.rfcomm">
<m2:Device Id="any">
<m2:Function Type="name:serialPort" />
</m2:Device>
</m2:DeviceCapability>
https://msdn.microsoft.com/en-us/library/windows/apps/dn263090.aspx
Connect to Bluetooth Device / how to set the rfcomm capability
Bluetooth connection between Universal app and medical device - UUID and CODFilter
但我的VS2013写道:未知名称空间m2
...
什么是m2
?如何加入m2
?
写Capabilities
必须包含Capability
,而不是DeviceCapability
。
我不明白这个错误...