Modified version of Microsoft BLE sample, included data visualization tools for debugging BLE sensors.
Note: This code is based on Bluetooth Low Energy sample, you can download the entire collection as a single ZIP file. For other samples, see the Samples portal on the Windows Dev Center.
Shows how to act as a client to communicate with a Bluetooth Low Energy (LE) device using the Bluetooth GATT protocol. Acts as a GATT client to access nearby GATT servers like heart rate sensors or temperature sensors.
Specifically, this app shows how to:
- Enumerate nearby Bluetooth LE devices
- Query for supported services
- Query for supported characteristics
- Read and write data
- Subscribe to indicate and notify events
- (not used).
Search for "BT_Code" to find the portions of the sample that are particularly relevant to Bluetooth. Note in particular the "bluetooth" capability declaration in the manifest.
Note The Windows universal samples require Visual Studio to build and Windows 10 to execute.
To obtain information about Windows 10 development, go to the Windows Dev Center
To obtain information about Microsoft Visual Studio and the tools for developing Windows apps, go to Visual Studio
Device Enumeration and Pairing
Windows.Devices.Bluetooth namespace
Windows.Devices.Bluetooth.GenericAttributeProfile namespace
Windows.Devices.Enumeration namespace
- Documentation
- Windows Bluetooth Core Team Blog
- Videos from Build 2017
Client: Windows 10 Anniversary Edition
Server: (not used) Windows Server 2016 Technical Preview
Phone: Windows 10 Anniversary Edition
- If you download the samples ZIP, be sure to unzip the entire archive.
- Start Microsoft Visual Studio and select File > Open > Project/Solution.
- Starting in the folder where you unzipped the application, go to the C# folder. Double-click the Visual Studio Solution (.sln) file.
- Press Ctrl+F5, or select Debug > Start Without Debugging.
- Select Build > Deploy Solution.