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
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 radio connected to the computer.
Ejemplo
sListRadios is string
sARadio is string
sId is string
sName is string
sMACAddress is string
// Clears the list
TableDeleteAll(TABLE_Radios)
// Returns the list of radios
sListRadios = BTListRadio(btSimpleList)
// Browse the radios
FOR EACH STRING sARadio OF sListRadios SEPARATED BY CR
	// Stores the device information
	sId = ExtractString(sARadio, 1)
	sName = ExtractString(sARadio, 3)
	sMACAddress = ExtractString(sARadio, 2)
	// The name is explicitly requested if it is not specified
	IF sName ~= "" THEN sName = BTInfoRadio(sId, btName) 
	// Fills the Table control with the radios
	TableAddLine(TABLE_Radios, False, sId, sName, sMACAddress)
END
Sintaxis
<Result> = BTInfoRadio(<Radio identifier> , <Requested information>)
<Result>: Character string
Requested information about the specified radio.
<Radio identifier>: Integer
Identifier of Bluetooth radio to use. This identifier is returned by BTListRadio.
<Requested information>: Integer constant
Information about the radio. 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
btClassOfServiceClass of service, may correspond to one of the following constants (or to a combination of constants):
  • btCoS_Acquisition: Data acquisition device (scanner, microphone, etc.).
  • btCoS_Audio: Audio device (microphone, speaker, etc.).
  • btCoS_Information: Information service (Web or WAP server, etc.).
  • btCoS_Positioning: Positioning device (GPS, etc.).
  • btCoS_Réseau: Network device (access point, etc.).
  • btCoS_Restitution: Printer, loudspeaker.
  • btCoS_Telephony: Telephony device (telephone, modem, etc.).
  • btCoS_Transfer: Transfer medium (memory card, etc.).
btIDClassOfServiceNumeric value (integer on 11 bits) corresponding to the class of service.
btIDMajorClassOfDeviceNumeric value (integer on 5 bits) corresponding to the major number of the class of device.
btIDManufacturerIdentifier of the manufacturer.
btIDMinorClassOfDeviceNumeric value (integer on 6 bits) corresponding to the minor number of the class of device.
btIDVersionVersion number set by the manufacturer.
btMACAddressMAC address of the device
btManufacturerName of the manufacturer.
btNameName of the radio.
Observaciones
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?
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: 25/03/2025

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