System.Bluetooth.TBluetoothLEManager.GetDeviceInList
Delphi
class function GetDeviceInList(const AIdentifier: TBluetoothMacAddress; const ADeviceList: TBluetoothLEDeviceList): TBluetoothLEDevice; static;
C++
static TBluetoothLEDevice* __fastcall GetDeviceInList(const System::UnicodeString AIdentifier, TBluetoothLEDeviceList* const ADeviceList);
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
function | protected | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEManager |
Description
Vérifie si un périphérique est dans la liste des périphériques et renvoie le périphérique.
GetDeviceInList accepte les paramètres suivants :
AIdentifier
: L'adresse MAC d'un périphérique Bluetooth.TBluetoothLEDeviceList
: Une liste de périphériques Bluetooth.
AddDeviceToList appelle cette fonction pour vérifier si un périphérique est déjà dans la liste avant de l'y ajouter.