PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
This content has been translated automatically. Click here to view the French version.
  • Overview
  • Implementing the management of Bluetooth Low Energy devices
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
Overview
The Bluetooth LE standard (for Low Energy) is used to manage devices with low energy consumption.
It is fundamental for the "IoT" technology (Internet of Things). The purpose of this standard is to allow connected objects to operate for several months without changing batteries!
Versions 27 and later
Windows This feature is now available for WINDEV applications on Windows.
New in version 27
Windows This feature is now available for WINDEV applications on Windows.
Windows This feature is now available for WINDEV applications on Windows.
Implementing the management of Bluetooth Low Energy devices
To implement Bluetooth Low Energy device management in a WINDEV Mobile application, several functions and WLanguage types are available to you.
The principle for using these functions and types is as follows:
  1. Initialize the Bluetooth Low Energy with BTLEInitialize.
    Android This function is useless.
  2. Load the list of accessible devices (BTLEListDevice).
  3. Select the desired device.
    • AndroidiPhone/iPadIOS WidgetMac Catalyst Request a connection to the device (BTLEConnect function).
    • Versions 27 and later
      Windows Select the desired device and initialize the device with the BTLEInitializeDevice function.
      New in version 27
      Windows Select the desired device and initialize the device with the BTLEInitializeDevice function.
      Windows Select the desired device and initialize the device with the BTLEInitializeDevice function.
    The status of the connection can be checked by BTLEConnectionStatus.
  4. If the connection is established with the device, you have the ability to find out the list of its services (BTLEGetAllServices).
    Remark: To get a specific service, use BTLEGetAService.
  5. Select the requested device and load the list of service characteristics (BTLEGetAllCharacteristics).
    Remark: To get a characteristic, use BTLEGetACharacteristic.
  6. Select the requested characteristic. You can:
  7. For each characteristic, you also have the ability to retrieve the associated descriptor. This descriptor describes the data exchanged between two devices compatible with Bluetooth Low Energy: unit of the value, range of values, ... You can:
Summary diagram:
Click the thumbnail to enlarge it
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment