・Bluetoothの機能の有効化
<devicecapability name="bluetooth.rfcomm">
<device id="any">
<function type="name:serialPort"></function>
</device>
</devicecapability>
・USB接続の有効化
<devicecapability name="serialcommunication">
<device id="any">
<function type="name:serialPort"></function>
</device>
</devicecapability>

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Package | |
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | |
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | |
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | |
IgnorableNamespaces="uap mp"> | |
<Identity | |
Name="b6cb1084-9135-4dc5-b24a-a1d33559f114" | |
Publisher="CN=gamo" | |
Version="1.0.0.0" /> | |
<mp:PhoneIdentity PhoneProductId="b6cb1084-9135-4dc5-b24a-a1d33559f114" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> | |
<Properties> | |
<DisplayName>App1</DisplayName> | |
<PublisherDisplayName>gamo</PublisherDisplayName> | |
<Logo>Assets\StoreLogo.png</Logo> | |
</Properties> | |
<Dependencies> | |
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" /> | |
</Dependencies> | |
<Resources> | |
<Resource Language="x-generate"/> | |
</Resources> | |
<Applications> | |
<Application Id="App" | |
Executable="$targetnametoken$.exe" | |
EntryPoint="App1.App"> | |
<uap:VisualElements | |
DisplayName="App1" | |
Square150x150Logo="Assets\Square150x150Logo.png" | |
Square44x44Logo="Assets\Square44x44Logo.png" | |
Description="App1" | |
BackgroundColor="transparent"> | |
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png"/> | |
<uap:SplashScreen Image="Assets\SplashScreen.png" /> | |
</uap:VisualElements> | |
</Application> | |
</Applications> | |
<Capabilities> | |
<Capability Name="internetClient" /> | |
<DeviceCapability Name="bluetooth.rfcomm"> | |
<Device Id="any"> | |
<Function Type="name:serialPort" /> | |
</Device> | |
</DeviceCapability> | |
<DeviceCapability Name="serialcommunication"> | |
<Device Id="any"> | |
<Function Type="name:serialPort" /> | |
</Device> | |
</DeviceCapability> | |
</Capabilities> | |
</Package> |
0 件のコメント:
コメントを投稿