connectionStatus property

MqttClientConnectionStatus? get connectionStatus

Gets the current connection status of the Mqtt Client. This is the connection state as above also with the broker return code. Set after every connection attempt.

Implementation

MqttClientConnectionStatus? get connectionStatus => connectionHandler != null
    ? connectionHandler!.connectionStatus
    : _connectionStatus;