Download presentation
Presentation is loading. Please wait.
1
Intro to Bluetooth Background Communication
Kiran Pathakota
2
Background triggers at your disposal
BluetoothLEAdvertisement(Watcher/Publisher)Trigger Short running – used for detecting beacons DeviceConnectionChangeTrigger Short running – used for detecting connection changes GattCharacteristicNotificationTrigger Short running – used for responding to changes in characteristic values
3
Background triggers at your disposal
BluetoothLEAdvertisement(Watcher/Publisher)Trigger Short running – used for detecting beacons DeviceConnectionChangeTrigger Short running – used for detecting connection changes GattCharacteristicNotificationTrigger Short running – used for responding to changes in characteristic values DeviceUseTrigger Long running – used for long term communication with a Device (eg. heart rate sensor) RfcommConnectionTrigger Long running – used for getting a handle to the socket when connected in the background
4
Background triggers at your disposal
BluetoothLEAdvertisement(Watcher/Publisher)Trigger Short running – used for detecting beacons DeviceConnectionChangeTrigger Short running – used for detecting connection changes GattCharacteristicNotificationTrigger Short running – used for responding to changes in characteristic values DeviceUseTrigger Long running – used for long term communication with a Device (eg. heart rate sensor) RfcommConnectionTrigger Long running – used for getting a handle to the socket when connected in the background
5
Communicate – without pairing
RFCOMM (BT Classic) GATT (BT LE) – Insider preview coming later this year
6
Rfcomm – Background Sockets
App BGTask socket System Client Register() Incoming BT connection Run() invoked triggerDetails.Socket AppService/LocalStorage RFCOMM Protocol
7
Outline Server: Background task registration
Server: Implement background task Client: Query for remote devices and connect
8
Outline Server: Background task registration
Server: Implement background task Client: Query for remote devices and connect
9
Outline Server: Background task registration
Server: Implement background task Client: Query for remote devices and connect
10
Demo: Rfcomm Chat
11
Call to Action Bluetooth landing page on MSDN http://aka.ms/btdevdocs
Re-visit Build on Channel 9 Continue your education at Microsoft Virtual Academy online
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.