Bluetooth discovery is the process of finding devices and services you can connect to.
Use the Bluetooth Discover function to search for Bluetooth devices within the range of the Bluetooth network. This function returns a list of device addresses and names. The client application uses the device addresses to connect to a specific Bluetooth server. You can set a time limit for device discovery. Set the time limit ms input to 0 to return a list of locally installed Bluetooth devices.
The process of discovering Bluetooth devices can be a slow operation. The longer the time limit, the more Bluetooth devices you can discover. If you know the Bluetooth address of the specific device you want to connect to, you can skip the discovery process and use the Bluetooth Open Connection function to connect to the device directly.
Use the Bluetooth RFCOMM Service Discovery VI to perform a Service Discovery Protocol (SDP) query to search for available Bluetooth services from a Bluetooth address. This VI returns a list of available services and the associated channel for the service. Use the channel number to open a Bluetooth connection using the Bluetooth Open Connection function.
![]() | Note If you use the Microsoft Bluetooth driver, the Bluetooth RFCOMM Service Discovery VI does not return the service name in the service list output. All other outputs in this VI return the correct information. |