PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
BTInfoDevice (Function)
In french: BTInfoPériphérique
Returns specific information about a Bluetooth device.
Versions 16 and later
Android This function is now available for Android applications.
AndroidAndroid Widget Caution: Bluetooth functions are not available in the Android emulator.
New in version 16
Android This function is now available for Android applications.
AndroidAndroid Widget Caution: Bluetooth functions are not available in the Android emulator.
Android This function is now available for Android applications.
AndroidAndroid Widget Caution: Bluetooth functions are not available in the Android emulator.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Android Widget This function is now available in Android widget mode.
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 SÉPARÉE 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 the BTListDevice function or by the BTSelectDevice function.
<Requested information>: Integer constant
Information about the device. The table below lists the available information as well as the values that can be returned:
btMACAddressMAC address of the device
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
btLastTimeUsedDate and time when the device was used for the last time by the current computer. This date is in DDMMYYYYHHMMSS format.
AndroidAndroid Widget This constant is not available.
btLastTimeSeenDate and time when the device was viewed for the last time by the current computer. This date is in DDMMYYYYHHMMSS format.
AndroidAndroid Widget This constant is not available.
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.
AndroidAndroid Widget This constant is not available.
btStatusRemembered
  • 1 if the device is currently "remembered" by the Bluetooth device of the current computer,
  • 0 otherwise.
AndroidAndroid Widget This constant is not available.
btNameDevice name
Remarks
Versions 16 and later
AndroidAndroid Widget

Required permissions

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.
New in version 16
AndroidAndroid Widget

Required permissions

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.
AndroidAndroid Widget

Required permissions

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.
Component: wd270com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment