Table of Contents

Class GattServiceProvider

Namespace
nanoFramework.Device.Bluetooth.GenericAttributeProfile
Assembly
nanoFramework.Device.Bluetooth.dll

This class is used to advertise GATT services.

public class GattServiceProvider
Inheritance
GattServiceProvider
Inherited Members
Extension Methods

Properties

AdvertisementStatus

Gets the advertisement status of this GATT service.

public GattServiceProviderAdvertisementStatus AdvertisementStatus { get; }

Property Value

GattServiceProviderAdvertisementStatus

Service

Gets the GATT local service for this provider.

public GattLocalService Service { get; }

Property Value

GattLocalService

The GattLocalService object.

Methods

Create(Guid)

Creates a new GATT service with the specified serviceUuid.

public static GattServiceProviderResult Create(Guid serviceUuid)

Parameters

serviceUuid Guid

The service UUID.

Returns

GattServiceProviderResult

A GattServiceProviderResult object.

StartAdvertising()

Start advertising the GATT service.

public void StartAdvertising()

StartAdvertising(GattServiceProviderAdvertisingParameters)

Start advertising the GATT service.

public void StartAdvertising(GattServiceProviderAdvertisingParameters parameters)

Parameters

parameters GattServiceProviderAdvertisingParameters

The advertising parameters.

StopAdvertising()

Stops advertising the current GATT service.

public void StopAdvertising()