System.Bluetooth.TBluetoothLEManager.GetGattServer

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetGattServer: TBluetoothGattServer;

C++

TBluetoothGattServer* __fastcall GetGattServer();

Properties

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

Description

Returns an instance of TBluetoothGattServer for the platform where your application is running that you can use to publish Bluetooth Low Energy services that remote devices can query.

Since not all platforms support using Bluetooth Low Energy as a server, check the value of SupportsGattServer to check whether or not you can call GetGattServer.

Platform Support

Platform Supported

Windows

OS X

10.9+

iOS

6+

Android

Note: Calls to GetGattServer on unsupported platforms raise an exception.

See Also