IPWorks Bluetooth 2020 ActiveX Edition

Questions / Feedback?

ListDevices Method

Lists all nearby devices.

Syntax

btinfocontrol.ListDevices 

Remarks

This method lists all nearby devices.

After calling this method the DeviceCount property will reflect the number of devices that were found. To find details for each device set DeviceIndex to select a device. Valid values for DeviceIndex are from 0 to DeviceCount -1.

After setting DeviceIndex the following properties will be populated with information about the device:

Information about the devices may also be retrieved from the DeviceInfo event, which will fire once for each device.

Example:

btinfo.ListDevices();
for (int i = 0; i < btinfo.DeviceCount; i++)
{
	btinfo.DeviceIndex = i;	
	
	Console.WriteLine("***********************");
	Console.WriteLine("Device Address: " + btinfo.DeviceAddress);
	Console.WriteLine("Device Authenticated: " + btinfo.DeviceAuthenticated);
	Console.WriteLine("Device Class of Device: " + btinfo.DeviceClassOfDevice);
	Console.WriteLine("Device Connected: " + btinfo.DeviceConnected);
	Console.WriteLine("Device Last Seen: " + btinfo.DeviceLastSeen);
	Console.WriteLine("Device Last Used: " + btinfo.DeviceLastUsed);
	Console.WriteLine("Device Name: " + btinfo.DeviceName);
	Console.WriteLine("Device Remembered: " + btinfo.DeviceRemembered);
}

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 ActiveX Edition - Version 20.0 [Build 7941]