Redirecting you to Developer Center... Click here if you are not automatically redirected.
This section of the tutorial explains how to setup your Windows 10 device - be it a PC, Surface, or Windows Phone - to remotely control an Arduino using the Windows Remote Arduino library.
There are two ways to get started using Windows Remote Arduino:
If you'd like to develop your own apps using Windows Remote Arduino, option 2 will allow you to easily add the library to any Visual Studio solution. Option 3 is more complex, but will allow you to add the latest source code directly to your solution. You will then be able to see and control exactly how the library operates!
NuGet is a quick and easy way to automatically install the packages and setup dependencies.
As an alternative to step 4 above, you can also select Manage NuGet packages for Solution under the NuGet Package Manager context menu and manually search for and install Windows Remote Arduino. Visit https://www.nuget.org/packages/Windows-Remote-Arduino for more information on this package.
Once you're done with this section, skip to the Device Capabilities section to finish setting up the application.
We recommend Visual Studio Community Edition, but Visual Studio Professional 2015 and Visual Studio Enterprise 2015 will work as well (available here ). If you already have Visual Studio installed, you can proceed directly to the next step.
Each Windows project will contain a manifest file that must be configured to allow certain permissions, such as Bluetooth and USB connectivity. Fortunately, it is fairly easy to configure these.
You will need to open the package.appxmanifest file of your project by right-clicking the file and selecting the "View Code" option. Then, find the <Capabilities> tag and insert the relevant code snippets from the "Enabling Bluetooth Capabilities", "Enabling Network Capabilities", and "Enabling USB Capabilities" subsections below.
NOTE: For Windows 8.1, you will need to add the following namespace to the top of the XML file, inside the <Package> tag.
In order to invoke the Bluetooth capabilities of a WinRT application, you must add the relevant DeviceCapability tags below inside the <Capabilities> tag of the Package.appxmanifest file.
In order to invoke the network socket capabilities of a WinRT application, you will need to add the following code inside the <Capabilities> tag of the Package.appxmanifest file.
In order to invoke the USB capabilities of a WinRT application, you must add the relevant DeviceCapability tags below inside the <Capabilities> tag of the Package.appxmanifest file.Visual Studio 2015 has a known bug in the Manifest Designer (the visual editor for appxmanifest files) that affects the serialcommunication capability. If your appxmanifest adds the serialcommunication capability, modifying your appxmanifest with the designer will corrupt your appxmanifest (the Device xml child will be lost). You can workaround this problem by hand editting the appxmanifest by right-clicking your appxmanifest and selecting View Code from the context menu.