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