ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / BTLE functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Enables or disables detection of changes in the value of a Bluetooth Low Energy characteristic.
For example, this makes it possible to generate a notification when a temperature sensor detects any changes.
New in version 2025
WINDEVWindows This function is now available for WINDEV applications in Windows.
Example
characteristic is btleCharacteristic
BTLECharacteristicChangeOfValue(characteristic, CB_ChangeValue)
// ===========================
PROCEDURE CB_ChangeValue (characteristic is btleCharacteristic <useful> , bufValue is Buffer)
// Get value and display it in a Static Text control
sBuf is ANSI string = bufValue
STC_SubscriptionValue = sBuf
crtc is btleCharacteristic
BTLECharacteristicChangeOfValue(crtc)
Syntax

Asking to be notified whenever the value of a characteristic changes Hide the details

BTLECharacteristicChangeOfValue(<Characteristic> [, <WLanguage procedure>])
<Characteristic>: btleCharacteristic variable
Name of the btleCharacteristic variable corresponding to the characteristic to use.
<WLanguage procedure>: Procedure name
Name of the WLanguage procedure ("callback") called when a characteristic changes on the device. For more details on this procedure, see Parameters of the procedure used by BTLECharacteristicChangeOfValue.

Stopping the detection regarding the change of characteristic value Hide the details

BTLECharacteristicChangeOfValue(<Characteristic>)
<Characteristic>: btleCharacteristic variable
Name of the btleCharacteristic variable corresponding to the characteristic to use.
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.
Component: wd300com.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 12/09/2024

Send a report | Local help