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
BTListRadio (Function)
In french: BTListeRadio
Returns the list of Bluetooth radios connected to the computer.
Example
sChaîneTmp is string
sListePériphs is string
// Liste les radios
sListePériphs = BTListRadio()
// Vide le champ Table affichant la liste des radios
TableDeleteAll(TABLE_Radios)
// Remplit le champ Table
IF sListePériphs <> "" THEN 
	FOR EACH STRING sChaîneTmp OF sListePériphs SEPARATED BY CR
		TableAdd(TABLE_Radios, sChaîneTmp)
	END
ELSE
	Info(ErrorInfo(errFullDetails)) 
END
Syntax
<Result> = BTListRadio([<Level of details>])
<Result>: Character string
List of available radios. This list has the following format:
  • in simple mode:
    <Radio 1 Identifier> + TAB + <MAC Address 1> + TAB + <Name 1> + CR +... +
    + CR + <Radio N Identifier> + TAB + <MAC Address N> + TAB + <Name N>
  • in detailed mode:
    <Radio 1 Identifier> + TAB + <MAC Address 1> + TAB + <Name 1> + TAB +
    <Class 1 Identifier> + TAB + <Manufacturer 1 Identifier> + TAB +
    <Identifier Version 1> + CR + ... + CR + <Radio Identifier N> + TAB +
    <MAC Address N> + TAB + <Name N> + TAB + <Class N Identifier> + TAB +
    <Manufacturer N Identifier> + TAB + <Version N Identifier>
The following information is returned:
  • <Identifiant Radio> Radio identifier, to be used in Bluetooth functions handling radios.
  • <Adresse MAC> Physical address of the radio
  • <Name>: Name returned by the radio (may be an empty string
  • <Identifiant Classe> Radio class (integer out of 32 for information on radio type)
  • <Identifiant fabricant> Radio manufacturer identifier
  • <Identifiant Version> Radio's own identifier (please consult its documentation)
<Level of details>: Optional Integer constant
Level of result details:
btDetailedList<Result> contains the list of radios in detailed mode.
btSimpleList
(Default value)
<Result> contains the list of radios in simple mode.
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