Open main menu

RAD Studio API Documentation β

System.Bluetooth.Components.TBluetoothLE.SubscribeToCharacteristic

Delphi

function SubscribeToCharacteristic(const ADevice: TBluetoothLEDevice;  const ACharacteristic: TBluetoothGattCharacteristic): Boolean;

C++

bool __fastcall SubscribeToCharacteristic(System::Bluetooth::TBluetoothLEDevice* const ADevice, System::Bluetooth::TBluetoothGattCharacteristic* const ACharacteristic);

Properties

Type Visibility Source Unit Parent
function public
System.Bluetooth.Components.pas
System.Bluetooth.Components.hpp
System.Bluetooth.Components TBluetoothLE

Description

Enables notifications for changes on the specified characteristic of the specified device, so that when the characteristic changes on the remote device, the data of the characteristic is automatically updated on your end (True).

If you enable notifications for a characteristic, you can handle the OnCharacteristicRead event to track any automatic update of the data of the characteristic.

See Also