Fixed MQTT and WS Routing - w/o SSL
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user