PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Enables or disables the detection regarding the change of value for a Bluetooth Low Energy characteristic.
Example
crtc is btleCharacteristic
crtc.ChangeOfValue(ProcDetectChange)
crtc is btleCharacteristic
crtc.ChangeOfValue()
Syntax

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

<Characteristic>.ChangeOfValue([<Procedure>])
<Characteristic>: btleCharacteristic variable
Name of btleCharacteristic variable corresponding to the characteristic to use.
<Procedure>: Name of WLanguage procedure
Name of WLangage procedure ("callback" procedure) that will be called when a characteristic changes on the device. This procedure has the following format :
PROCEDURE <Procedure name>(<Characteristic>, <Value>)
where:
  • <Characteristic> is a btleCharacteristic variable corresponding to the characteristic whose value changed on the Bluetooth device.
  • <Value> is a buffer containing the new value of characteristic.
The parameters of this procedure are optional.
There is no need to pass parameters to this procedure. Indeed, these parameters are automatically filled during each call.

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

<Characteristic>.ChangeOfValue()
<Characteristic>: btleCharacteristic variable
Name of btleCharacteristic variable corresponding to the characteristic to use.
Remarks
  • 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 occurs 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.
Component : wd250android.jar
Minimum version required
  • Version 24
Comments
Click [Add] to post a comment