PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Limitation
  • Required permissions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
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 the Android applications.
AndroidAndroid Widget Caution:
  • The Bluetooth functions are not available in the Android emulator.
  • The management of Bluetooth is available from Android 2.0.
New in version 16
Android This function is now available for the Android applications.
AndroidAndroid Widget Caution:
  • The Bluetooth functions are not available in the Android emulator.
  • The management of Bluetooth is available from Android 2.0.
Android This function is now available for the Android applications.
AndroidAndroid Widget Caution:
  • The Bluetooth functions are not available in the Android emulator.
  • The management of Bluetooth is available from Android 2.0.
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
sListDevices is string
sADevice is string
sId is string
sName is string
sMACAddress is string
// Clears the list
TableDeleteAll(TABLE_Devices)
// 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)
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 by 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:
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
Windows

Limitation

Only the Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks are supported by this version. To find out the stack used, call BTStack.
The Broadcom (Widcomm) stacks are not available in 64 bits.
See Which stacks to use? for more details
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.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Android wd230android.jar
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment