AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

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
Retrieves the service of a Bluetooth Low Energy device corresponding to the specified identifier (UUID).
Example
MyDevice is btleDevice
...
MyService is btleService = BTLEGetAService(MyDevice, "ACC54-DAD4D5-DADD")
IF ErrorOccurred THEN
Error("The service does not exist.")
RETURN
END
...
Syntax
<Result> = BTLEGetAService(<Device> , <Identifier>)
<Result>: btleService variable
  • btleService variable corresponding to the service found.
  • If no service corresponds to the specified identifier, the ErrorOccurred variable is set to True.
<Device>: btleDevice variable
Name of the btleDevice variable that corresponds to the Bluetooth device used.
<Identifier>: Character string
Identifier (UUID) of service to retrieve.
Caution: If several services correspond to the same identifier (UUID), only the first service is retrieved.
Remarks
Several services of the same Bluetooth device can correspond to the same identifier (UUID). To retrieve all the services corresponding to the same identifier, use BTLEGetAllServices.
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: 27/06/2023

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