System.Bluetooth.TBluetoothGattServer.DoOnCharacteristicWrite
Delphi
procedure DoOnCharacteristicWrite(const Sender: TObject; const ACharacteristic: TBluetoothGattCharacteristic; var AGattStatus: TBluetoothGattStatus; const Value: TBytes);
C++
void __fastcall DoOnCharacteristicWrite(System::TObject* const Sender, TBluetoothGattCharacteristic* const ACharacteristic, TBluetoothGattStatus &AGattStatus, const System::DynamicArray<System::Byte> Value);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattServer |
Description
Dispatcher of the OnCharacteristicWrite event.
DoOnCharacteristicWrite is called when your GATT server receives a request from a client device to edit the data of a characteristic.
This event dispatcher receives the following parameters:
Sender
is your GATT server.ACharacteristic
is the characteristic that is the target of the request.AGattStatus
is the exit status of the write request.