System.Bluetooth.Components.TBluetoothLE.AddService
Delphi
function AddService(const AService: TBluetoothGattService): Boolean;
C++
bool __fastcall AddService(System::Bluetooth::TBluetoothGattService* const AService);
Eigenschaften
| Typ | Sichtbarkeit | Quelle | Unit | Übergeordnet |
|---|---|---|---|---|
| function | public | System.Bluetooth.Components.pas System.Bluetooth.Components.hpp |
System.Bluetooth.Components | TBluetoothLE |
Beschreibung
Fügt dem zugrunde liegenden Server einen zuvor erstellten Dienst und dessen Eigenschaften hinzu.
Gibt True zurück, wenn die Aktion erfolgreich ist (der Dienst wird der Liste der Dienste hinzugefügt).
Siehe auch
- System.Bluetooth.Components.TBluetoothLE
- System.Bluetooth.Components.TBluetoothLE.GetServices
- System.Bluetooth.Components.TBluetoothLE.GetService
- System.Bluetooth.Components.TBluetoothLE.GetGattServer
- System.Bluetooth.TBluetoothGattServer
- System.Bluetooth.TBluetoothGattServer.CreateService
- System.Bluetooth.TBluetoothGattServer.AddService
- System.Bluetooth.TBluetoothGattService
- System.Bluetooth.TBluetoothGattService.Characteristics