Fixed MQTT and WS Routing - w/o SSL

This commit is contained in:
2025-10-13 17:34:54 +03:00
parent f696984cd1
commit 956786321a
29 changed files with 2043 additions and 1210 deletions

View File

@@ -1,5 +1,4 @@
#include "Telemetry.hpp"
#include "../Communication/Communication.hpp"
void Telemetry::begin() {
// Initialize arrays
@@ -149,17 +148,8 @@ void Telemetry::checkBellLoads() {
}
}
// Send batch notifications if any bells are overloaded
if (!criticalBells.empty()) {
String severity = anyOverload ? "critical" : "warning";
if (Communication::_instance) {
Communication::_instance->sendBellOverloadNotification(criticalBells, criticalLoads, severity);
}
} else if (!warningBells.empty()) {
if (Communication::_instance) {
Communication::_instance->sendBellOverloadNotification(warningBells, warningLoads, "warning");
}
}
// Note: Notifications now handled by BellEngine which has Communication reference
// BellEngine monitors telemetry and sends notifications when overloads detected
// Trigger force stop if any bell is actually overloaded
if (anyOverload && forceStopCallback != nullptr) {