ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / BTLE functions
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
Initializes Bluetooth Low Energy.
Windows This function must be called before any other WLanguage function for managing Bluetooth Low Energy.
Example
BTLEInitialize(InitBTLE)
 
INTERNAL PROCEDURE InitBTLE(nStatus is int)
IF nStatus = btEnabled THEN
BTLEListDevice(ScanBTLE)
END
END
Syntax
BTLEInitialize(<WLanguage procedure>)
<WLanguage procedure>: Procedure name
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):
btActivationInProgressThe Bluetooth is being enabled on the device.
Windows This constant is not available.
btDeactivationInProgressThe Bluetooth is being disabled on the device.
Windows This constant is not available.
btDisabledThe Bluetooth is disabled on the device.
btEnabledThe Bluetooth is enabled on the device.
Remarks
Related Examples:
WM Bluetooth 4 Cross-platform examples (WINDEV Mobile): WM Bluetooth 4
[ + ] This example explains how to use the Bluetooth Low Energy functions (Bluetooth LE): BTLExxx.

It is an application allowing you to find the nearby BTLE devices, to connect to them and to interact with the proposed services.
Business / UI classification: Business Logic
Component: wd290com.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/27/2023

Send a report | Local help