System.Bluetooth.Components.TBluetoothLE.DoOnCharacteristicRead
Delphi
procedure DoOnCharacteristicRead(const Sender: TObject; const ACharacteristic: TBluetoothGattCharacteristic; AGattStatus: TBluetoothGattStatus);
C++
void __fastcall DoOnCharacteristicRead(System::TObject* const Sender, System::Bluetooth::TBluetoothGattCharacteristic* const ACharacteristic, System::Bluetooth::TBluetoothGattStatus AGattStatus);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
protected | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
説明
OnCharacteristicRead イベントのディスパッチャです。
DoOnCharacteristicRead が呼び出されるのは、リモート デバイスから提供されるサービスのキャラクタリスティックのデータがリモート デバイスから読み取られたときです。
この読み取り操作は、次のいずれかの場合にトリガされる可能性があります。
- ReadCharacteristic を使って、キャラクタリスティックのデータの読み取りを積極的に要求した場合。
- SubscribeToCharacteristic を使って、キャラクタリスティックの変更通知を有効にしたあと、そのキャラクタリスティックがリモート デバイス上で変更され、ユーザー側のキャラクタリスティックのデータが自動的に更新された場合。
このイベント ディスパッチャは次のパラメータを受け取ります。
Sender
は、このキャラクタリスティックを提供するリモート デバイスです。ACharacteristic
は、読み取られたキャラクタリスティックです。AGattStatus
は読み取り操作の終了ステータスです。