ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / BTLE functions
  • Properties specific to btleDevice variables
  • Functions that use the btleDevice type
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
The btleDevice type allows you to handle a device that uses the Bluetooth Low Energy technology.
The characteristics of this device can be defined and changed using different WLanguage properties.
Remark: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
Example
myDevice is btleDevice
BTLEConnect(myDevice)
Remarks

Properties specific to btleDevice variables

The following properties can be used to handle btleDevice variables:
Property nameType usedEffect
IdentifierCharacter stringDevice identifier.
iPhone/iPad This identifier is unique, it is managed by the system. Caution: this identifier may change at each new connection of the same device.
This property is read-only.
NameCharacter stringDevice name. This name can correspond to an empty string ("").
This property is read-only.
ServiceArray of btleServiceList of Bluetooth LE services supported by the device. You must be connected to the device (with BTLEConnect) in order to access this property. Otherwise, a fatal error will occur.

Functions that use the btleDevice type

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.
Minimum version required
  • Version 21
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/27/2023

Send a report | Local help