A recent posting from Microsoft’s Developer Network explains how to to establish a serial Bluetooth link between an Arduino and a Windows 8.1 app so you could send simple or more advanced commands
If you are a developer looking to learn how to establish a Bluetooth link between an Arduino device and a Windows 8.1 app that you’re creating, then you’re in luck as Microsoft has just shared some precious advices on that. Shared on the highly resourceful Channel9, the guide to create a Bluetooth communication between Arduino and Windows 8.1 has been made available for download in C# and C++ (link at the end).
To be able to test the code, you will need an Arduino with Bluetooth capabilities, like Arduino Uno R3 and a JY-MCU Bluetooth module and also a Windows 8.1 device with Bluetooth capabilities. You could also attach a Bluetooth dongle if it lacks Bluetooth on its own. You will then set up the Arduino with a Bluetooth module, two LEDs and a potentiometer, as seen in this Youtube video.
Communication with the Bluetooth module is accomplished using the SoftwareSerial.h library. The Windows 8.1 app has to declare Bluetooth serial communication capabilities in Package.appxmanifest: To deploy the Arduino code with VisualMicro, right click the Project in the Solution Explorer and select Debug\Start new instance. When the Windows 8.1 app starts, you can establish a connection and control the LEDs.
Follow the link from below to download the full guide and see the entire guide on Microsoft’s Developer Network.