Fehlerkorrekturen
This commit is contained in:
1 parent
38f5d374b2
commit
584f7dc8f7
2 files changed
+70
-94
No files matched your search
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user