System.Bluetooth.Components.TBluetoothLE.OnCharacteristicRead
Delphi
property OnCharacteristicRead: TGattCharacteristicEvent read FOnCharacteristicRead write FOnCharacteristicRead;
C++
__property System::Bluetooth::TGattCharacteristicEvent OnCharacteristicRead = {read=FOnCharacteristicRead, write=FOnCharacteristicRead};
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
event | published | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
説明
リモート デバイスから提供されるサービスのキャラクタリスティックのデータがリモート デバイスから読み取られたときに発生します。
この読み取り操作は、次のいずれかの場合にトリガされる可能性があります。
- ReadCharacteristic を使って、キャラクタリスティックのデータの読み取りを積極的に要求した場合。
- SubscribeToCharacteristic を使って、キャラクタリスティックの変更通知を有効にしたあと、そのキャラクタリスティックがリモート デバイス上で変更され、ユーザー側のキャラクタリスティックのデータが自動的に更新された場合。
OnCharacteristicRead のハンドラは次のパラメータを取得します: