AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Bluetooth
  • Limitation
  • Required permissions
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Returns specific information about a Bluetooth device.
AndroidWidget Android Caution: Bluetooth functions are not available in the Android emulator.
Ejemplo
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
Sintaxis
<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.
AndroidWidget Android This constant is not available.
btLastTimeUsedDate and time when the device was used for the last time by the current computer. This date is in DDMMYYYYHHMMSS format.
AndroidWidget Android This constant is not available.
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.
AndroidWidget Android This constant is not available.
btStatusRemembered
  • 1 if the device is currently "remembered" by the Bluetooth device of the current computer,
  • 0 otherwise.
AndroidWidget Android This constant is not available.
Observaciones
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?
AndroidWidget Android

Required permissions

This function changes the permissions required by the application.
Permission required: BLUETOOTH.
This permission allows the applications to connect to the Bluetooth services.
Componente: wd300com.dll
Versión mínima requerida
  • Versión 12
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

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