Fehlerkorrekturen

This commit is contained in:
Sven committed 2024-11-15 14:52:55 +01:00
1 parent 38f5d374b2
commit 584f7dc8f7
2 files changed
+70 -94

No files matched your search

+8
View File
@@ -50,6 +50,8 @@ import 'util.dart';
enum ConnectionStateEnum { notConnected, connected }
class MqttCore with ProducerMixin, ConsumerMixin {
static late MqttCore instance;
late ConnectionStateEnum connectionState = ConnectionStateEnum.notConnected;
late bool _disconnectInProgress = false;
@@ -69,6 +71,8 @@ class MqttCore with ProducerMixin, ConsumerMixin {
Timer? _trackTimer;
MqttCore() {
instance = this;
initMessages();
_disconnectInProgress = false;
@@ -76,6 +80,10 @@ class MqttCore with ProducerMixin, ConsumerMixin {
_processBootstrap();
}
ConnectionStateEnum getConnectionStatus() {
return connectionState;
}
_disconnectMqttClient() async {
// TODO MESSAGING
sendMessage(