|
|
|
|
|
- Presentación
- Implantación de la gestión de dispositivos Bluetooth de baja energía
Gestión de dispositivos Bluetooth Low Energy (sintaxis con prefijo)
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!
Implantación de la gestión de dispositivos Bluetooth de baja energía 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 the 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 <btleDevice variable>ConnectionStatus.
- If the connection is established with the device, you have the ability to find out the list of its services (<btleDevice variable>GetAllServices).
Note: To obtain a specific service, use the <btleDevice variable>.GetAService function.. - Select the requested device and load the list of service characteristics (<btleService variable>GetAllCharacteristics).
Note: To obtain a feature, use the <btleService variable>.GetACharacteristic function.. - 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 Bluetooth Low Energy compatible devices: value unit, value range, ... You can:
Summary diagram:
Click on thumbnail to enlarge
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|