System.Bluetooth.TBluetoothLEDevice.GetService
Delphi
function GetService(const AServiceID: TBluetoothUUID): TBluetoothGattService;
C++
TBluetoothGattService* __fastcall GetService(const TBluetoothUUID &AServiceID);
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| function | public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothLEDevice |
Description
Demande le service avec l'UUID transmis sous forme d'argument à partir du périphérique Bluetooth Low Energy.
Vous devez utiliser DiscoverServices avant d'employer cette fonction.
GetService attend un seul argument, AServiceID, qui est l'identificateur du service. GetService renvoie une instance de la classe TBluetoothGattService pour un UUID de service particulier.