Intro to Bluetooth Background Communication Kiran Pathakota
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
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
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
Communicate – without pairing RFCOMM (BT Classic) GATT (BT LE) – Insider preview coming later this year
Rfcomm – Background Sockets App BGTask socket System Client Register() Incoming BT connection Run() invoked triggerDetails.Socket AppService/LocalStorage RFCOMM Protocol
Outline Server: Background task registration Server: Implement background task Client: Query for remote devices and connect
Outline Server: Background task registration Server: Implement background task Client: Query for remote devices and connect
Outline Server: Background task registration Server: Implement background task Client: Query for remote devices and connect
Demo: Rfcomm Chat
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