ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Limitation
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BTInfoDevice (Function)
In french: BTInfoPériphérique
Returns specific information about a Bluetooth device.
Example
sListePeriphériques is string
sUnPeripherique is string
sId is string
sNom is string
sAdresseMAC is string
// Vide la liste
TableDeleteAll(TABLE_Periphériques)
// Liste les périphériques Bluetooth à proximité
sListePeriphériques = BTListDevice(btSimpleList)
// Parcours des périphériques connectés
FOR EACH STRING sUnPeripherique OF sListePeriphériques SEPARATED BY CR
	// Mémorise les informations du périphérique
	sId = ExtractString(sUnPeripherique, 1)
	sNom = ExtractString(sUnPeripherique, 3)
	sAdresseMAC = ExtractString(sUnPeripherique, 2)
	// Si le nom n'est pas renseigné, demande le nom explicitement
	IF sNom ~= "" THEN sNom = BTInfoDevice(sId, btName) 
	// Remplit le champ Table avec les périphériques
	TableAddLine(TABLE_Periphériques, False, sId, sNom, sAdresseMAC)
END
Syntax
<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:
btClassOfDeviceClass of the device, may correspond to one of the following constants:
  • btCoD_NetworkAccess
  • btCoD_AudioVideo
  • btCoD_Miscellaneous
  • btCoD_Imaging
  • btCoD_Unknown
  • btCoD_Toy
  • btCoD_Computer
  • btCoD_Device
  • btCoD_Phone
  • btCoD_Wearable
btLastTimeSeenDate and time when the device was viewed for the last time by the current computer. This date is in DDMMYYYYHHMMSS format.
btLastTimeUsedDate and time when the device was used for the last time by the current computer. This date is in DDMMYYYYHHMMSS format.
btMACAddressMAC address of the device
btNameDevice name
btStatusAuthenticated
  • 1 if the device is currently authenticated beside the current computer,
  • 0 otherwise.
btStatusConnected
  • 1 if the device is currently "connected" to the current computer,
  • 0 otherwise.
btStatusRemembered
  • 1 if the device is currently "remembered" by the Bluetooth device of the current computer,
  • 0 otherwise.
Remarks
Windows

Limitation

This version only supports Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks. To know the stack used, call BTStack.
Broadcom (Widcomm) stacks are not available in 64-bit mode.
For more details, see Which stacks to use?
Component: wd300com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/27/2025

Send a report | Local help