Table of Contents

Class L2CapChannelOptions

Namespace
Bluetooth.Abstractions.Scanning.Options
Assembly
Bluetooth.Abstractions.Scanning.dll

Options for L2CAP channel creation.

public record L2CapChannelOptions : IEquatable<L2CapChannelOptions>
Inheritance
L2CapChannelOptions
Implements
Inherited Members

Properties

AutoFlushWrites

Gets a value indicating whether the output stream is automatically flushed after each write.

public bool AutoFlushWrites { get; init; }

Property Value

bool

DefaultMtu

Gets the default MTU to use when the platform cannot determine it automatically.

public int DefaultMtu { get; init; }

Property Value

int

EnableBackgroundReading

Gets a value indicating whether background reading is enabled. When true, a background loop raises DataReceived events as data arrives.

public bool EnableBackgroundReading { get; init; }

Property Value

bool

Mtu

Gets the maximum transmission unit (MTU) for the L2CAP channel. If null, a platform-determined default is used.

public int? Mtu { get; init; }

Property Value

int?

ReadBufferSize

Gets the buffer size in bytes used for reading data from the L2CAP channel. Defaults to DefaultMtu when 0.

public int ReadBufferSize { get; init; }

Property Value

int