|
|
|
|
- Overview
- Implementing the management of Bluetooth Low Energy devices
Managing Bluetooth Low Energy devices
The Bluetooth LE standard (for Low Energy) is used to manage devices with low energy consumption. It is fundamental for the "IoT" technology (Internet of Things). The purpose of this standard is to allow connected objects to operate for several months without changing batteries!
Implementing the management of Bluetooth Low Energy devices Several WLanguage functions and types can be used to manage Bluetooth Low Energy devices in a WINDEV or WINDEV Mobile application. The principle for using these functions and types is as follows: - Declare the device in Windows Bluetooth configuration.
- Initialize the Bluetooth Low Energy with BTLEInitialize.
- Load the list of accessible devices (BTLEListDevice).
- Select the desired device. The status of the connection can be checked by BTLEConnectionStatus.
- If the connection is established with the device, you have the ability to find out the list of its services (BTLEGetAllServices).
Remark: To get a specific service, use BTLEGetAService. - Select the requested device and load the list of service characteristics (BTLEGetAllCharacteristics).
Remark: To get a characteristic, use BTLEGetACharacteristic. - Select the requested characteristic. You can:
- For each characteristic, you also have the ability to retrieve the associated descriptor. This descriptor describes the data exchanged between two devices compatible with Bluetooth Low Energy: unit of the value, range of values, ... You can:
Summary diagram:
Click the thumbnail to enlarge
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…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|