From 91a0992964b53dc6198dc53bdc5a169b7bede2b7 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Tue, 26 Mar 2024 20:48:39 +0100 Subject: [PATCH] fix: VE.Direct MPPT data not always updated in websocket set the "last published" timestampt after handling *all* MPPTs. --- src/WebApi_ws_vedirect_live.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/WebApi_ws_vedirect_live.cpp b/src/WebApi_ws_vedirect_live.cpp index 967372ccc..9ec9d79ff 100644 --- a/src/WebApi_ws_vedirect_live.cpp +++ b/src/WebApi_ws_vedirect_live.cpp @@ -138,9 +138,10 @@ void WebApiWsVedirectLiveClass::generateJsonResponse(JsonVariant& root, bool ful const JsonObject &nested = array.createNestedObject(serial); nested["data_age_ms"] = VictronMppt.getDataAgeMillis(idx); populateJson(nested, spMpptData); - _lastPublish = millis(); } + _lastPublish = millis(); + // power limiter state root["dpl"]["PLSTATE"] = -1; if (Configuration.get().PowerLimiter.Enabled)