Stream Socket Access denied Windows Phone 8.1 Bluetooth

前端 未结 1 1227
离开以前
离开以前 2021-01-17 02:39

I try to connect a Bluetooth device with my Windows Phone (8.1) with the StreamSocket-Class.

Now every time I call socket.CallAsync(HostName, RemoteServiceName) I ge

相关标签:
1条回答
  • 2021-01-17 03:37

    I had the same issue. But finally I've found a solution at http://www.codefest.at/post/2014/02/03/Bluetooth-in-Windows-81-Apps-nutzen.aspx

    The Internet (Client & Server) capability doesn't do the trick. It's a riddle to me why MS doesn't provide the bluetooth capability in the GUI of Visual Studio.

    Just add the following xml into your appxmanifest:

    <Capabilities>
        <m2:DeviceCapability Name="bluetooth.rfcomm">
          <m2:Device Id="any">
            <m2:Function Type="serviceId:00001101-0000-1000-8000-00805F9B34FB" />
          </m2:Device>
        </m2:DeviceCapability>
      </Capabilities>
    

    Regards

    0 讨论(0)
提交回复
热议问题