ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Bluetooth
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
BTInfoRadio (Function)
In french: BTInfoRadio
Returns specific information about a Bluetooth radio connected to the computer.
Example
sListeRadios is string
sUneRadio is string
sId is string
sNom is string
sAdresseMAC is string
// Vide la liste
TableDeleteAll(TABLE_Radios)
// Liste les radios
sListeRadios = BTListRadio(btSimpleList)
// Parcours des radios
FOR EACH STRING sUneRadio OF sListeRadios SEPARATED BY CR
	// Mémorise les informations du périphérique
	sId = ExtractString(sUneRadio, 1)
	sNom = ExtractString(sUneRadio, 3)
	sAdresseMAC = ExtractString(sUneRadio, 2)
	// Si le nom n'est pas renseigné, demande le nom explicitement
	IF sNom ~= "" THEN sNom = BTInfoRadio(sId, btName) 
	// Remplit le champ Table avec les radios
	TableAddLine(TABLE_Radios, False, sId, sNom, sAdresseMAC)
END
Syntax
<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.
Remarks
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?
Component: wd300com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help