AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones BTLE
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
Enables or disables the detection regarding the change of value for a Bluetooth Low Energy characteristic.
Example
caractéristique is btleCharacteristic
BTLECharacteristicChangeOfValue(caractéristique, CB_ChangementValeur)
// ===========================
PROCÉDURE CB_ChangementValeur(caractéristique is btleCharacteristic <useful>, bufValeur is Buffer)
// Récupération de la valeur et affichage dans un champ Libellé
sBuf is string ANSI = bufValeur
LIB_ValeurAbonnement = sBuf
crtq is btleCharacteristic
BTLECharacteristicChangeOfValue(crtq)
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 WLangage procedure ("callback" procedure) that will be 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: wd290android.aar
Versión mínima requerida
  • Versión 21
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 28/06/2023

Señalar un error o enviar una sugerencia | Ayuda local