System.Bluetooth.Components.TBluetoothLE
Delphi
TBluetoothLE = class(TComponent)
C++
class PASCALIMPLEMENTATION TBluetoothLE : public System::Classes::TComponent
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | System.Bluetooth.Components |
Description
Component that serves as a wrapper for the main features of the classes of the Bluetooth Low Energy framework, such as TBluetoothLEManager, TBluetoothGattServer, TBluetoothLEDevice, or TBluetoothGattService.
The TBluetoothLE component provides Bluetooth Low Energy features such as:
- Checking whether the platform where your application is running supports running a BLuetooth Low Energy client, server or both, reading the values of SupportsGattClient and SupportsGattServer.
- Discovering reachable remote devices using DiscoverDevices.
- Discovering services using DiscoverServices and reading them using GetService or GetServices.
- Reading characteristics from a remote device using ReadCharacteristic, GetCharacteristic, or GetCharacteristics.
- Subscribing to characteristics using SubscribeToCharacteristic so that the characteristic data is updated automatically when it changes on the remote device that provides the characteristic.
- Writing characteristics on a remote device, either one by one using WriteCharacteristic or as an atomic operation using BeginReliableWrite and ExecuteReliableWrite.
- Reading descriptors from a remote device using ReadDescriptor or GetDescriptors.
- Writing descriptors to a remote device using WriteDescriptor.
- Serving services and characteristics using CreateService, CreateIncludedService, CreateCharacteristic, AddCharacteristic, and UpdateCharacteristicValue.
You can also access the underlying instances of classes of the Bluetooth Low Energy framework for fine-grained control or advanced features using properties such as CurrentAdapter, CurrentManager, or GattServer.