Erweiterungen
This commit is contained in:
1 parent
bd4a976573
commit
ab86295bd5
6 files changed
+5
-19
No files matched your search
@@ -31,14 +31,14 @@ import 'constants.dart';
|
||||
import 'util.dart';
|
||||
|
||||
enum ConnectionStateEnum {
|
||||
not_connected,
|
||||
notConnected,
|
||||
connected
|
||||
}
|
||||
|
||||
class MqttCore {
|
||||
static late MqttCore instance;
|
||||
|
||||
late ConnectionStateEnum connectionState = ConnectionStateEnum.not_connected;
|
||||
late ConnectionStateEnum connectionState = ConnectionStateEnum.notConnected;
|
||||
|
||||
late String _brokerUri;
|
||||
late int _brokerPort;
|
||||
@@ -274,7 +274,7 @@ class MqttCore {
|
||||
}
|
||||
|
||||
void _startReconnectTimer() {
|
||||
connectionState = ConnectionStateEnum.not_connected;
|
||||
connectionState = ConnectionStateEnum.notConnected;
|
||||
|
||||
Util.logInfo("_startReconnectTimer called");
|
||||
|
||||
@@ -286,7 +286,7 @@ class MqttCore {
|
||||
}
|
||||
|
||||
void _clientDisconnected() {
|
||||
connectionState = ConnectionStateEnum.not_connected;
|
||||
connectionState = ConnectionStateEnum.notConnected;
|
||||
|
||||
Util.logInfo("_clientDisconnected called");
|
||||
|
||||
|
||||
Reference in new issue
Block a user