System.Bluetooth.TBluetoothLEAdapter.DoStartDiscovery
Delphi
function DoStartDiscovery(Timeout: Cardinal; const AFilterUUIDList: TBluetoothUUIDsList = nil; const ABluetoothLEScanFilterList: TBluetoothLEScanFilterList = nil): Boolean; virtual; abstract;
C++
virtual bool __fastcall DoStartDiscovery(unsigned Timeout, TBluetoothUUIDsList* const AFilterUUIDList = (TBluetoothUUIDsList*)(0x0), TBluetoothLEScanFilterList* const ABluetoothLEScanFilterList = (TBluetoothLEScanFilterList*)(0x0)) = 0 ;
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEAdapter |
説明
- メモ: これは、TBluetoothLEAdapter のプラットフォーム固有のサブクラスで実装される抽象メソッドです。
Bluetooth Low Energy を使用するリモート デバイスを探すための検出操作を開始します。
StartDiscoveryDoStartDiscovery を呼び出します。
DoStartDiscovery は、次のパラメータを取ります:
Timeout
: Bluetooth Low Energy を使用したリモート デバイスの検知に、どれだけの時間を使用するかAFilterUUIDList
(任意): 1 つまたは複数の Bluetooth UUIDs のリストABluetoothLEScanFilterList
: 1 つまたは複数の BLE スキャン フィルタからなるリストで、そのフィルタ内の特定の BLE デバイスに対してのみスキャンをかけることができます。
検知オペレーションが完了した際、アダプタが DoDiscoveryEnd を呼び出し、これが検知されたリモート デバイスのリストを提供します。
DoStartDiscovery は、検体が正常に開始した場合に True
を、何らかの原因により開始に支障があった場合には False
を返します。
サポート対象プラットフォーム
プラットフォーム | メモ |
---|---|
32 ビット Windows |
|
OS X |
|
iOS |
|
Android |
|