AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Funciones BTLE
  • Required versions
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
Writes the value of a descriptor to a Bluetooth Low Energy device.
Example
cMyService is btleService
...
cMyCharacteristic is btleCharacteristic <- cMyService[1]
cMyDesc is btleDescriptor <- cMyCharacteristic.Descriptor[1]
...
BTLEDescriptorWriteValue(cMyDesc, NewValue)
Syntax
<Result> = BTLEDescriptorWriteValue(<Descriptor> , <Value>)
<Result>: Boolean
  • True if the writing was successful,
  • False otherwise. ErrorInfo returns more information on the error.
<Descriptor>: btleDescriptor variable
Name of btleDescriptor variable representing the descriptor to use.
<Value>: Type of value
Value of descriptor to write. The type depends on the descriptor (string, numeric, buffer).
Windows Only a Buffer value can be specified.
Remarks

Required versions

  • Android Android applications:
    • Bluetooth Low Energy WLanguage functions are only available on devices with Android 4.3 or later (api level 18).
    • A fatal error occurs if the function is used with an earlier system version.
    • To determine the version of Android the application is running on, use SysAndroidVersion.
  • iPhone/iPadIOS WidgetMac Catalyst iOS applications:
    The WLanguage Bluetooth Low Energy functions are available for the devices running iOS 9.
  • Windows WINDEV applications:
Business / UI classification: Business Logic
Component: wd290com.dll
Versión mínima requerida
  • Versión 21
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 26/05/2022

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