Class GattServiceProviderAdvertisingParameters
- Assembly
- nanoFramework.Device.Bluetooth.dll
This class is used to define the GATT service advertisement parameters.
public class GattServiceProviderAdvertisingParameters
- Inheritance
-
GattServiceProviderAdvertisingParameters
- Inherited Members
- Extension Methods
Constructors
GattServiceProviderAdvertisingParameters()
Creates a new GattServiceProviderAdvertisingParameters object.
public GattServiceProviderAdvertisingParameters()
Properties
Advertisement
Gets the underlying BluetoothLEAdvertisement object for the GattServiceProviderAdvertisingParameters to enable extra advertisement parameters to be set.
public BluetoothLEAdvertisement Advertisement { get; }
Property Value
CustomAdvertisement
If set the Advertisement will not be filled in with the default data sections only data sections from the Advertisement property will be used. Default is false.
public bool CustomAdvertisement { get; set; }
Property Value
IsConnectable
Gets or sets a boolean that indicates if the GATT service is connect-able.
public bool IsConnectable { get; set; }
Property Value
IsDiscoverable
Gets or sets a boolean indicating that the GATT service is discoverable.
public bool IsDiscoverable { get; set; }
Property Value
ServiceData
For Bluetooth Low Energy, this parameter adds an additional ServiceData section to the advertisement payload for the service's service UUID if space is available. If the service data is added to the advertisement, then the service UUID will also be included in the same section in the advertisement.
public Buffer ServiceData { get; set; }