AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Bluetooth
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
BTDisconnectDevice (Function)
In french: BTDéconnectePériphérique
Cancels the authentication beside a Bluetooth device. The authentication was performed by BTConnectDevice.
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> = BTDisconnectDevice(<Device identifier>)
<Result>: Boolean
  • True if the disconnection was successful,
  • False otherwise. ErrorInfo returns more information on the error.
<Device identifier>: Integer
Identifier of the Bluetooth device to use. This identifier is returned by BTListDevice.
Remarks
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.
For more details, see Which stacks to use?
Component: wd290com.dll
Versión mínima requerida
  • Versión 12
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

Señalar un error o enviar una sugerencia | Ayuda local