Table of Contents

Class MqttClientStatus

Namespace
MQTTnet.Server
Assembly
MQTTnet.dll
public sealed class MqttClientStatus
Inheritance
MqttClientStatus
Inherited Members
Extension Methods

Constructors

MqttClientStatus(MqttClient)

public MqttClientStatus(MqttClient client)

Parameters

client MqttClient

Properties

BytesReceived

public long BytesReceived { get; }

Property Value

long

BytesSent

public long BytesSent { get; }

Property Value

long

ConnectedTimestamp

public DateTime ConnectedTimestamp { get; }

Property Value

DateTime

Endpoint

public string Endpoint { get; }

Property Value

string

Id

Gets or sets the client identifier. Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.

public string Id { get; }

Property Value

string

LastNonKeepAlivePacketReceivedTimestamp

public DateTime LastNonKeepAlivePacketReceivedTimestamp { get; }

Property Value

DateTime

LastPacketReceivedTimestamp

public DateTime LastPacketReceivedTimestamp { get; }

Property Value

DateTime

LastPacketSentTimestamp

public DateTime LastPacketSentTimestamp { get; }

Property Value

DateTime

ProtocolVersion

public MqttProtocolVersion ProtocolVersion { get; }

Property Value

MqttProtocolVersion

ReceivedApplicationMessagesCount

public long ReceivedApplicationMessagesCount { get; }

Property Value

long

ReceivedPacketsCount

public long ReceivedPacketsCount { get; }

Property Value

long

SentApplicationMessagesCount

public long SentApplicationMessagesCount { get; }

Property Value

long

SentPacketsCount

public long SentPacketsCount { get; }

Property Value

long

Session

public MqttSessionStatus Session { get; set; }

Property Value

MqttSessionStatus

Methods

DisconnectAsync(MqttServerClientDisconnectOptions)

public Task DisconnectAsync(MqttServerClientDisconnectOptions options)

Parameters

options MqttServerClientDisconnectOptions

Returns

Task

ResetStatistics()

public void ResetStatistics()