System.Bluetooth.TBluetoothLEManager.GetGattServer

De RAD Studio API Documentation
Aller à : navigation, rechercher

Delphi

function GetGattServer: TBluetoothGattServer;

C++

TBluetoothGattServer* __fastcall GetGattServer();

Propriétés

Type Visibilité  Source Unité  Parent
function public
System.Bluetooth.pas
System.Bluetooth.hpp
System.Bluetooth TBluetoothLEManager


Description

Renvoie une instance de TBluetoothGattServer, pour la plate-forme sur laquelle votre application s'exécute, que vous pouvez utiliser pour publier les services Bluetooth Low Energy interrogeable par les périphériques distants.

Puisque les plates-formes ne prennent pas en charge toutes l'utilisation du protocole Bluetooth Low Energy en tant que serveur, vérifiez la valeur de SupportsGattServer pour savoir si vous pouvez appeler GetGattServer.

Prise en charge de la plate-forme

Plate-forme Prise en charge

Windows

OS X

10.9+

IOS

6+

Android

Remarque : Les appels de GetGattServer sur des plates-formes non prises en charge déclenchent une exception.

Voir aussi