PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
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 btleDevice variable corresponding to the Bluetooth device used.
<Identifier>: Character string (with quotes)
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.
  • 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 will occur 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.
Components
Android wd230android.jar
Minimum required version
  • Version 21
Comments
Click [Add] to post a comment