Class GattSession
- 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
MaxMtuSize
Gets the maximum transmission unit (MTU) size.
public ushort MaxMtuSize { get; }
Property Value
Methods
FromDeviceId(BluetoothDeviceId)
Creates a new GattSession object from the specified deviceId.
public static GattSession FromDeviceId(BluetoothDeviceId deviceId)
Parameters
deviceId
BluetoothDeviceIdThe 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
SessionStatusChanged
Session status change event.
public event GattSession.GattSessionStatusChangedEventHandler SessionStatusChanged