- Required permissions
In french: BTInfoPériphérique
Returns specific information about a Bluetooth device.
: Bluetooth functions are not available in the Android emulator.
sListDevices is string
sADevice is string
sId is string
sName is string
sMACAddress is string
// Clears the list
// Returns the list of nearby Bluetooth devices
sListDevices = BTListDevice(btSimpleList)
// Browse the connected devices
FOR EACH STRING sADevice OF sListDevices SEPARATED BY CR
// Stores the device information
sId = ExtractString(sADevice, 1)
sName = ExtractString(sADevice, 3)
sMACAddress = ExtractString(sADevice, 2)
// The name is explicitly requested if it is not specified
IF sName ~= "" THEN sName = BTInfoDevice(sId, btName)
// Fills the Table control with the devices
TableAddLine(TABLE_Devices, False, sId, sName, sMACAddress)
<Result> = BTInfoDevice(<Device identifier> , <Requested information>)
<Result>: Character string
Requested information about the specified device.
<Device identifier>: Integer
Identifier of the Bluetooth device to use. This identifier is returned by BTListDevice or BTSelectDevice.
<Requested information>: Integer constant
Information about the device. The table below lists the available information as well as the values that can be returned:
This version only supports Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks. To know the stack used, call BTStack
The Broadcom (Widcomm) stacks are not available in 64 bits.
The call to this function modifies the permissions required by the application.
Required permission: BLUETOOTH.
This permission allows the applications to connect to the Bluetooth services.
This page is also available for…