System.Bluetooth.TBluetoothLEDevice.DoSetCharacteristicNotification
Delphi
function DoSetCharacteristicNotification(const ACharacteristic: TBluetoothGattCharacteristic; Enable: Boolean): Boolean; virtual; abstract;
C++
virtual bool __fastcall DoSetCharacteristicNotification(TBluetoothGattCharacteristic* const ACharacteristic, bool Enable) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEDevice |
Description
Determines whether to enable notifications for changes on the specified characteristic, so that when the characteristic changes on the remote device the data of the characteristic is automatically updated on your end (True
), or not (False
).
If you enable notifications for a characteristic, you can handle the OnCharacteristicRead event to track any automatic update of the data of the characteristic.
SetCharacteristicNotification calls DoSetCharacteristicNotification.
- Note: This is an abstract method that platform-specific subclasses of TBluetoothLEDevice implement.