PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Properties specific to the description of 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/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
The btleDevice type allows you to handle a device that is using the Bluetooth Low Energy technology.
The characteristics of this device can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
myDevice is btleDevice
BTLEConnect(myDevice)
Remarks

Properties specific to the description of btleDevice variables

The following properties can be used to handle a btleDevice variable:
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 available in read-only.
NameCharacter stringDevice name. This name can correspond to an empty string ("").
This property is available in 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.

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>

Functions that use the btleDevice type

Versions 21 and later
BTLEConnect
New in version 21
BTLEConnect
BTLEConnect
Used to connect to a Bluetooth Low Energy device.
Versions 21 and later
BTLEConnectionStatus
New in version 21
BTLEConnectionStatus
BTLEConnectionStatus
Returns the current connection status to a Bluetooth Low Energy device or asks to be notified when the connection status changes.
Versions 21 and later
BTLEDisconnect
New in version 21
BTLEDisconnect
BTLEDisconnect
Used to disconnect from a Bluetooth Low Energy device.
Versions 21 and later
BTLEGetAllServices
New in version 21
BTLEGetAllServices
BTLEGetAllServices
Retrieves all the services corresponding to a UUID.
Versions 21 and later
BTLEGetAService
New in version 21
BTLEGetAService
BTLEGetAService
Retrieves the service of a Bluetooth Low Energy device corresponding to the specified identifier (UUID).
Minimum version required
  • Version 21
Comments
Click [Add] to post a comment