System.Bluetooth.TBluetoothGattServer.StartAdvertising
Delphi
procedure StartAdvertising;
C++
void __fastcall StartAdvertising();
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
procedure function |
public | System.Bluetooth.pas System.Bluetooth.hpp |
System.Bluetooth | TBluetoothGattServer |
Description
Starts broadcasting its advertising data to any reachable remote client.
Alternatively, you may make AdvertiseService True
so that your GATT server broadcasts its advertising data as you add services to your GATT server.
Clients may handle received advertising data using the TBluetoothLEManager.OnDiscoverLeDevice event.
Exceptions
Exception | Message | Scenarios |
---|---|---|
Failed to start advertising because no advertising instance is available |
| |
Operation failed due to an internal error |
| |
There was unknown error |
| |
This feature is not supported on this platform |
|