Unanswered Bluetooth connection notification

  • Thursday, April 12, 2012 6:40 PM
     
     

    How can my app receive a notification if bluetooth device gets connected/disconnected?  Also how to determine the profile of a connected Bluetooth device, For e.g My app would like to know if a Bluetooth stereo headset (profile A2DP) is connected ? Any samples ?

All Replies

  • Friday, April 13, 2012 11:06 PM
    Moderator
     
     

    Hi PiyMsdn,

    Take a look at the Windows.Devices.Enumeration and Windows.Media.Devices namespaces. There is documentation and sample code at Enumerating devices and the Device enumeration sample. I assume your Bluetooth headset would be an audio renderer.

    --Rob

  • Monday, April 16, 2012 5:12 PM
     
     

    I checked the Windows.Devices.Enumeration.. it is for enumerating the devices directly connected to the system.

    My question is on receiving the notification when a bluetooth device get paired /unpaired ? Sorry for not making it clear.