|
|
|
|
- Properties specific to btleDevice variables
- Functions that use the btleDevice type
btleDevice (Type of variable) In french: btlePériphérique
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.
myDevice is btleDevice BTLEConnect(myDevice)
Remarks Properties specific to btleDevice variables The following properties can be used to handle btleDevice variables: | | | Property name | Type used | Effect |
---|
Identifier | Character string | Device identifier. This property is read-only. | Name | Character string | Device name. This name can correspond to an empty string (""). This property is read-only. | Service | Array of btleService | List 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 - Functions that use the standard syntax:
| | BTLEConnect | Used to connect to a Bluetooth Low Energy device. | BTLEConnectionStatus | Returns the current connection status to a Bluetooth Low Energy device or asks to be notified when the connection status changes. | BTLEDisconnect | Used to disconnect from a Bluetooth Low Energy device. | BTLEGetAllServices | Retrieves all the services corresponding to a UUID. | BTLEGetAService | Retrieves the service of a Bluetooth Low Energy device corresponding to the specified identifier (UUID). |
- Functions that use the prefix syntax:
Related Examples:
|
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.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|