feat: new cluster protocol, event naming
This commit is contained in:
@@ -195,13 +195,13 @@ void NeoPatternService::registerEventHandlers() {
|
||||
JsonDocument doc;
|
||||
DeserializationError err = deserializeJson(doc, *jsonStr);
|
||||
if (err) {
|
||||
LOG_WARN("NeoPattern", String("Failed to parse CLUSTER_EVENT data: ") + err.c_str());
|
||||
LOG_WARN("NeoPattern", String("Failed to parse cluster/event data: ") + err.c_str());
|
||||
return;
|
||||
}
|
||||
JsonObject obj = doc.as<JsonObject>();
|
||||
bool applied = applyControlParams(obj);
|
||||
if (applied) {
|
||||
LOG_INFO("NeoPattern", "Applied control from CLUSTER_EVENT");
|
||||
LOG_INFO("NeoPattern", "Applied control from cluster/event");
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user