feat: enhance reconnect functionality and improve UI feedback for connection status

This commit is contained in:
Manuel Weiser committed 2025-02-15 09:01:23 +01:00
1 parent c6fd5f8ad5
commit dc82c04a17
3 files changed
+63 -5

No files matched your search

+10
View File
@@ -69,6 +69,16 @@ void onWsEvent(AsyncWebSocket *server, AsyncWebSocketClient *client, AwsEventTyp
}
}
else if (doc["type"] == "reconnect") {
if (doc["payload"] == "bambu") {
bambu_restart();
}
if (doc["payload"] == "spoolman") {
initSpoolman();
}
}
else if (doc["type"] == "setBambuSpool") {
Serial.println(doc["payload"].as<String>());
setBambuSpool(doc["payload"]);