This sample requires two devices. And allow basic communication in background between the two bluetooth enabled windows 10 devices.
- Pair two Windows 10 devices.
- Deploy this application on both of these devices.
- On Device A, Click on Start Background Server. You may close the app after that.
- On Device B, Click on Show Devices. You will see the name of Device A displayed in the app.
- On Device B, Click on Send Message to send a message.
- On Device A and B both you will receive a prompt to confirm if you want to give this app permission for Bluetooth communication.
- Go back to Device A, click on “Fetch Message” to get latest DateTime pushed by Device B.
- Once permission is granted, you can start background worker task by clicking on “Register BG Worker”.
- Every half an hour Device B will push current DateTime to Device A.
- While debugging, you can explicitly call background task to get the desired behaviour.