Declare Bluetooth capability for Windows Store and Windows Phone 8.1 apps

If anybody ever needs to communicate with a Bluetooth device from a Windows Store or Windows Phone 8.1 app, you have to manually add the following to your package.appxmanifest file (it cannot be added through any UI):

<m2:DeviceCapability Name="bluetooth.rfcomm">
    <m2:Device Id="any">
        <m2:Function Type="name:serialPort" />
    </m2:Device>
</m2:DeviceCapability>

Don't ask how long that took to figure out =)

UPDATE: I finally found the documentation on MSDN for this and it describes the valid values for the various attributes.

 

@briandunnington


2018.11.27

Deploying Azure Web App Certificates from Key Vault

How to work around an ARM template limitation when using a Key Vault certificate in a Web App

View details »


2018.11.06

Roku Round-up

Quick updates on some Roku libraries that I recently released

View details »


2018.10.09

CORS and exceptions on ASP.NET Core

How to ensure your CORS headers are properly returned with HTTP error responses on ASP.NET Core

View details »


2018.03.25

The many uses of Azure Functions Proxies

Azure Functions Proxies are awesome - here are just a few ways to leverage them

View details »


2018.03.12

Build an Alexa skill using Azure Functions

Although AWS Lambdas are the default, it is dead simple to use Azure Functions for your Alexa skill as well

View details »


More Posts >