From d8ffab7338ad050f59037a951d89cbfa0f7dd056 Mon Sep 17 00:00:00 2001 From: womendoushihaoyin Date: Mon, 13 Jan 2025 09:10:58 +0800 Subject: [PATCH] add the moonraker_mqtt --- resources/web/flutter/index.html | 51 ++++ resources/web/flutter0/index.html | 17 ++ src/libslic3r/PrintConfig.cpp | 3 +- src/libslic3r/PrintConfig.hpp | 2 +- src/mqtt/externals/paho-mqtt-c/src/SHA1.c | 20 +- src/mqtt/externals/paho-mqtt-c/src/SHA1.h | 12 +- .../externals/paho-mqtt-c/src/WebSocket.c | 6 +- src/slic3r/CMakeLists.txt | 2 + src/slic3r/GUI/SSWCP.cpp | 170 ++++++++--- src/slic3r/GUI/SSWCP.hpp | 14 + src/slic3r/Utils/MQTT.cpp | 168 +++++++++++ src/slic3r/Utils/MQTT.hpp | 92 ++++++ src/slic3r/Utils/MoonRaker.cpp | 264 +++++++++++++++++- src/slic3r/Utils/MoonRaker.hpp | 63 ++++- src/slic3r/Utils/PrintHost.cpp | 3 +- src/slic3r/Utils/PrintHost.hpp | 10 +- 16 files changed, 832 insertions(+), 65 deletions(-) create mode 100644 src/slic3r/Utils/MQTT.cpp create mode 100644 src/slic3r/Utils/MQTT.hpp diff --git a/resources/web/flutter/index.html b/resources/web/flutter/index.html index 562dc60d2e4..af28f10bf13 100644 --- a/resources/web/flutter/index.html +++ b/resources/web/flutter/index.html @@ -36,6 +36,57 @@