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
Initializes Bluetooth Low Energy.
iPhone/iPad This function must necessarily be called before any other WLanguage function for managing the Bluetooth Low Energy.
Android This function is useless in Android. The initialization is automatically performed.
Example
BTLEInitialize(InitBTLE)

INTERNAL PROCEDURE InitBTLE(nStatus is int)

IF nStatus = btEnabled THEN
BTLEListDevice(ScanBTLE)
END
Syntax
BTLEInitialize(<Procedure Name>)
<Procedure Name>: Character string (with or without quotes)
Name of the WLangage procedure ("callback" procedure) that will be called when Bluetooth Low Energy is initialized on the device. This procedure has the following format :
PROCEDURE <Procedure Name> (<Status of Bluetooth Low Energy>)

where <Status of Bluetooth Low Energy> corresponds to the activation status of Bluetooth Low Energy on the device. This status can correspond to one of the following constants (integer type):
btEnabledThe Bluetooth is enabled on the device.
btActivationInProgressThe Bluetooth is being enabled on the device.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
btDisabledThe Bluetooth is disabled on the device.
Remarks
  • iPhone/iPad If Bluetooth Low Energy is not available (iOS version earlier than version 9.0), the ErrorOccurred variable is set to True and ErrorInfo returns more details about the problem.
  • Android The WLanguage Bluetooth Low Energy functions are available for the devices running an Android version greater than or equal to version 4.3 (api level 18).
    • A fatal error will occur if the function is used with an earlier system version.
    • To find out the version of Android system on which the application is run, use SysAndroidVersion.
  • iPhone/iPad The WLanguage Bluetooth Low Energy functions are available from iOS 9.
Components
Android wd230android.jar
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment