ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
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
Retrieves the service of a Bluetooth Low Energy device corresponding to the specified identifier (UUID).
Example
MonPériph is btleDevice
...
MonService is btleService = BTLEGetAService(MonPériph, "ACC54-DAD4D5-DADD")
IF ErrorOccurred THEN
	Error("Le service n'existe pas.")
	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.
Warning: 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: wd300com.dll
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 03/25/2025

Send a report | Local help