System.Bluetooth.TBluetoothLEDevice.DoOnCharacteristicRead

提供: RAD Studio API Documentation
移動先: 案内検索

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 を使って、キャラクタリスティックの変更通知を有効にしたあと、そのキャラクタリスティックがリモート デバイス上で変更され、ユーザー側のキャラクタリスティックのデータが自動的に更新された場合。

このイベント ディスパッチャは次のパラメータを受け取ります。

関連項目