PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
BTListRadio (Function)
In French: BTListeRadio
Returns the list of Bluetooth radios connected to the computer.
Example
sTmpString is string
sListDevices is string
// Returns the list of radios
sListDevices = BTListRadio()
// Clear the table used to display the list of radios
TableDeleteAll(TABLE_Radios)
// Fills the Table control
IF sListDevices <> "" THEN
FOR EACH STRING sTmpString OF sListDevices SEPARATED BY CR
TableAdd(TABLE_Radios, sTmpString)
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 +
    <Version 1 Identifier> + CR + ... + CR + <Radio N Identifier> + TAB +
    <MAC Address N> + TAB + <Name N> + TAB + <Class N Identifier> + TAB +
    <Manufacturer N Identifier> + TAB + <Version N Identifier>
The following information is returned:
  • <Radio Identifier>: Identifier of the radio, will be used in the Bluetooth functions that handle radios.
  • <MAC Address>: Physical address of the radio
  • <Name>: Name returned by the radio (may be an empty string
  • <Class Identifier>: Class of radio (32-bit integter used to get information about the radio type)
  • <Manufacturer Identifier>: Identifier of the radio manufacturer
  • <Version Identifier>: Identifier specific to the radio (see its documentation)
<Level of Details>: Optional Integer constant
Level of details for the result:
btDetailedList<Result> contains the list of radios in detailed mode.
btSimpleList
(Default value)
<Result> contains the list of radios in simple mode.
Remarks
Only the Microsoft, Bluesoleil and Broadcom (Widcomm) bluetooth stacks are supported by this version. To find out the stack used, call BTStack.
The Broadcom (Widcomm) stacks are not available in 64 bits.
See Which stacks to use? for more details
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment