ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Visible radio and connection request
  • Limitation
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
BTChangeVisibility (Function)
In french: BTChangeVisibilité
Changes the visibility of a Bluetooth radio.
Remark: A Bluetooth radio corresponds to a Bluetooth transmitter. This transmitter can correspond to a Bluetooth USB key or it can be an element included in a computer (laptop for example).
Example
WindowsAjax
bVisible is boolean
// Identifier of Bluetooth radios listed in a Table control
nRadioID is int
nRadioID = TABLE_Radios.COL_ID[TABLE_Radios]
// Checks whether the selected radio is visible
bVisible = BTIsVisible(nRadioID)
// Display
IF bVisible = True THEN
Trace("Visible")
ELSE
Trace("Not visible")
END
// Change the visibility
BTChangeVisibility(nRadioID, NOT bVisible)
Syntax
WindowsAjax

Syntax that can be used in Windows Hide the details

<Result> = BTChangeVisibility(<Radio identifier> , <New status>)
<Result>: Boolean
  • True if the change of visibility was successfully performed,
  • False otherwise. ErrorInfo returns more information on the error.
<Radio identifier>: Integer
Identifier of Bluetooth radio to use. This identifier is returned by BTListRadio.
<New status>: Boolean
  • True in order for the radio to become visible,
  • False in order for the radio to be hidden.
Remarks

Visible radio and connection request

A visible Bluetooth radio automatically accepts the connection requests. When BTChangeVisibility is used to make the radio visible, the call to BTChangeConnectivity is automatically performed.
Windows

Limitation

Only the Microsoft Bluetooth stack is supported by this function. To know the stack used, call BTStack.
For more details, see Which stacks to use?
Component: wd290com.dll
Minimum version required
  • Version 12
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help