Erweiterung

This commit is contained in:
Sven committed 2024-03-21 11:12:30 +01:00
1 parent 2d13a5f611
commit 12a351e604
4 files changed
+27 -4

No files matched your search

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

+4 -4
View File
@@ -131,14 +131,14 @@ class MqttCore {
publishText(String subtopic, String text) { publishText(String subtopic, String text) {
try { try {
var compressedText = GZipCodec().encode(utf8.encode(text)); var buffer = Uint8Buffer();
buffer.addAll(utf8.encode(text));
var mqttBuffer = Uint8Buffer(); _mqttClient.publishMessage(subtopic, MqttQos.exactlyOnce, buffer);
mqttBuffer.addAll(compressedText);
var topic = "$_toServerTopic$subtopic/$_clientId"; var topic = "$_toServerTopic$subtopic/$_clientId";
_mqttClient.publishMessage( topic, MqttQos.exactlyOnce, mqttBuffer); _mqttClient.publishMessage( topic, MqttQos.exactlyOnce, buffer);
Util.logInfo("send message $text to $topic"); Util.logInfo("send message $text to $topic");
} catch (e) { } catch (e) {
+16
View File
@@ -217,6 +217,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.0.3" version: "2.0.3"
cli_util:
dependency: transitive
description:
name: cli_util
sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19
url: "https://pub.dev"
source: hosted
version: "0.4.1"
clock: clock:
dependency: transitive dependency: transitive
description: description:
@@ -446,6 +454,14 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.6.12" version: "1.6.12"
flutter_launcher_icons:
dependency: "direct main"
description:
name: flutter_launcher_icons
sha256: "526faf84284b86a4cb36d20a5e45147747b7563d921373d4ee0559c54fcdbcea"
url: "https://pub.dev"
source: hosted
version: "0.13.1"
flutter_link_previewer: flutter_link_previewer:
dependency: transitive dependency: transitive
description: description:
+7
View File
@@ -67,6 +67,7 @@ dependencies:
expandable: ^5.0.1 expandable: ^5.0.1
url_launcher: ^6.2.4 url_launcher: ^6.2.4
audioplayers: ^5.2.1 audioplayers: ^5.2.1
flutter_launcher_icons: ^0.13.1
dev_dependencies: dev_dependencies:
flutter_test: flutter_test:
@@ -86,6 +87,12 @@ dev_dependencies:
# For information on the generic Dart part of this file, see the # For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec # following page: https://dart.dev/tools/pub/pubspec
flutter_launcher_icons:
android: "assets/icon.png"
ios: true
image_path: "assets/icon.png"
min_sdk_android: 21
# The following section is specific to Flutter packages. # The following section is specific to Flutter packages.
flutter: flutter: