System.Bluetooth.Components.TBluetoothLE.AbortReliableWrite
Delphi
procedure AbortReliableWrite(const ADevice: TBluetoothLEDevice);
C++
void __fastcall AbortReliableWrite(System::Bluetooth::TBluetoothLEDevice* const ADevice);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Description
Aborts a previously-started transaction to write a set of characteristics on the specified remote device as an atomic transaction.
To write a set of characteristics on a remote device as an atomic transaction:
- Call BeginReliableWrite to start the transaction.
- Call WriteCharacteristic as many times as you want. The remove device does not write the characteristic, it only verifies that the sent value is correct, and queues the change up for an atomic execution. The remote device does trigger however OnCharacteristicWrite; handle this event to verify that the new value the remote device received from you is correct.
- After you make all your calls to WriteCharacteristic, do either of the following:
- Call ExecuteReliableWrite to execute the atomic transaction.
- Call AbortReliableWrite to abort the transaction (for example, if you received unexpected data on your handler for OnCharacteristicWrite).
AbortReliableWrite calls TBluetoothLEDevice.AbortReliableWrite.
Platform Support
Platform | Supported |
---|---|
Windows |
|
Mac OS X |
|
iOS |
|
Android |
|