ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Bluetooth
  • Required permissions
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
BTStatus (Function)
In french: BTEtat
Returns the current Bluetooth activation status on the device or asks to be notified when the activation status changes. To enable or disable the Bluetooth on the device, use BTActivate.
Remark: Bluetooth functions are not available in the Android emulator.
Example
IF BTStatus() = btDisabled THEN
BTActivate(True)
END
Syntax

Finding out the Bluetooth activation status Hide the details

<Result> = BTStatus()
<Result>: Integer constant
Bluetooth activation status:
btActivationInProgressThe Bluetooth is being enabled on the device.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
btDisabledThe Bluetooth is disabled on the device.
btEnabledThe Bluetooth is enabled on the device.
btErrorThe Bluetooth activation status could not be retrieved.

Enabling the notification whenever Bluetooth activation changes Hide the details

BTStatus(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback" procedure) that will be called when the Bluetooth activation status changes on the device.
For more details on this procedure, see Parameters of the procedure used by BTStatus.
If this parameter corresponds to an empty string (""), the notifications will not be sent anymore when the status changes. The function has no effect if no notification request was performed.
Remarks

Required permissions

The call to this function modifies the permissions required by the application.
Required permission: BLUETOOTH
This permission allows the applications to connect to the Bluetooth services.
Component: wd290android.jar
Minimum version required
  • Version 16
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help