DotNetCore


Signup    Login    

| My Solutions | My Bookmarks | My Code Snippets | My Questions | My Tutorials |     


Discover Devices in Microsoft Shared Source Bluetooth
Author: Adam Pedley
Date: 10 October 2007 00:31
Tutorial Views: 3443

AddThis Social Bookmark Button



Discovering devices in the original Microsoft Shared Source Bluetooth is not actually possible. With the enhanced version from DotNetCore with some help from the 32Feet library I have added on Discovering of devices.

I have also added the ability to receive the devices name when discovering devices, something I could not find done in either library.

To discover devices use the following code


' Declare Variables 
Dim discovery As New Microsoft.WindowsMobile.SharedSource.Bluetooth.BluetoothDiscovery 

' For each bluetooth device discovered 
For Each bthDevice As BluetoothDevice In discovery.DiscoverDevices(255, True, True, True) 

Next 

Parameters

  • MaxDevices - the maximum number of devices you want returned
  • Authenticated - devices that are already authenticated with the current device
  • Remembered - devices that have been remembered from previous connections (Paired Devices)
  • Unknown - unknown devices (essentially everything else)
Related Content

The basics of the Windows Embedded Source Tools for Bluetooth

How to install and create a project using the Microsoft Bluetooth Shared Source Library

How to show a list of paired devices

How to create a bluetooth service

How to connect to a bluetooth device

Microsoft Shared Source Bluetooth for Windows Desktop (XP)

Discover Devices in Microsoft Shared Source Bluetooth

Enhanced Microsoft Shared Source Bluetooth



Creative Commons License
This work is licensed under a Creative Commons Attribution-No Derivative Works 3.0 Unported License.

If you found information on this site please consider donating to help enhance the site. All funds donated will be used for purchasing software and services directly for DotNetCore.
Paypal

Comments

Comments
User: v0x31
Date: 3/18/2008 9:37:18 AM

I do not understand what I must download to get Bluetooth.BluetoothDiscovery to be available?
User: nelson
Date: 8/12/2008 10:32:20 PM

User: nelson
Date: 8/12/2008 10:32:29 PM


I do not understand what I must download to get Bluetooth.BluetoothDiscovery to be available?


You must be logged in to post a comment.