PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
BTConnectDevice (Function)
In French: BTConnectePériphérique
Allows you to be authenticated toward a Bluetooth device.
Windows Mobile In Mobile, this function is useless. Indeed, there is no need to be authenticated toward the device to send a file. Simply use OBEXConnect.
Example
// Bluetooth connection with code 123
// COL_ID is the Table control column used to list the devices
IF BTConnectDevice(COL_ID, "123") = True THEN
// OBEX connection to the device according to the MAC address of the device
nIDOBEXConnection = OBEXConnect(obexBluetooth, COL_MACAddress)
...
// OBEX disconnection
OBEXDisconnect(nIDOBEXConnection)
// Bluetooth disconnection
BTDisconnectDevice(COL_ID)
ELSE
// The Bluetooth connection failed
Error("Unable to connect to the Bluetooth device", ErrorInfo(errFullDetails))
END
Syntax
<Result> = BTConnectDevice(<Device Identifier> , <Password> [, <Radio Identifier>])
<Result>: Boolean
  • True if the authentication was successful,
  • False otherwise. ErrorInfo returns more details about the problem.
<Device Identifier>: Integer
Identifier of the Bluetooth device to use. This identifier is returned by BTListDevice.
<Password>: Character string (with quotes)
Password used for authentication. This password must be identical to the one entered on the Bluetooth device.
<Radio Identifier>: Optional integer
Identifier of the Bluetooth radio to use. This identifier is returned by BTListRadio. If this parameter is not specified, the choice of radio is automatically performed.
Remarks
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
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment