Table of Contents

Class GattSession

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

This class represents a GATT session.

public class GattSession
Inheritance
GattSession
Inherited Members
Extension Methods

Properties

DeviceId

Gets the device id.

public BluetoothDeviceId DeviceId { get; }

Property Value

BluetoothDeviceId

MaxMtuSize

Gets the maximum transmission unit (MTU) size.

public ushort MaxMtuSize { get; }

Property Value

ushort

Methods

FromDeviceId(BluetoothDeviceId)

Creates a new GattSession object from the specified deviceId.

public static GattSession FromDeviceId(BluetoothDeviceId deviceId)

Parameters

deviceId BluetoothDeviceId

The deviceId.

Returns

GattSession

A new GattSession object.

Events

MaxPduSizeChanged

An event that is raised when the maximum protocol data unit (PDU) size changes. The PDU is also known as the maximum transmission unit (MTU).

public event EventHandler MaxPduSizeChanged

Event Type

EventHandler

SessionStatusChanged

Session status change event.

public event GattSession.GattSessionStatusChangedEventHandler SessionStatusChanged

Event Type

GattSession.GattSessionStatusChangedEventHandler