Tutorial by Examples

To use any Bluetooth functionality on a Universal Windows Platform app, you must check the Bluetooth capability in the Package.appxmanifest. Open Package.appxmanifest Go to the Capabilities tab Find Bluetooth on the left and check the box next to it
This example shows how to advertise a custom payload from a Windows 10 device in the foreground. The payload uses a made up company (identified as 0xFFFE) and advertises the string Hello World in the advertisement. BluetoothLEAdvertisementPublisher publisher = new BluetoothLEAdvertisementPublisher(...
General Listening This example shows how to listen for a specific advertisement. BluetoothLEAdvertisementWatcher watcher = new BluetoothLEAdvertisementWatcher(); // Use active listening if you want to receive Scan Response packets as well // this will have a greater power cost. watcher.Scanni...
When your Bluetooth LE Watcher's callback is triggered, the eventArgs include an RSSI value telling you the received signal strength (how strong the private async void OnAdvertisementReceived(BluetoothLEAdvertisementWatcher watcher, BluetoothLEAdvertisementReceivedEventArgs eventArgs) { // Th...

Page 1 of 1