Table of Contents

Class GattServiceProviderAdvertisingParameters

Namespace
nanoFramework.Device.Bluetooth.GenericAttributeProfile
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()

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

BluetoothLEAdvertisement

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

bool

IsConnectable

Gets or sets a boolean that indicates if the GATT service is connect-able.

public bool IsConnectable { get; set; }

Property Value

bool

IsDiscoverable

Gets or sets a boolean indicating that the GATT service is discoverable.

public bool IsDiscoverable { get; set; }

Property Value

bool

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; }

Property Value

Buffer