Skip to content

Commit

Permalink
fix: VE.Direct MPPT data not always updated in websocket
Browse files Browse the repository at this point in the history
set the "last published" timestampt after handling *all* MPPTs.
  • Loading branch information
schlimmchen committed Mar 26, 2024
1 parent 811b64a commit 91a0992
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WebApi_ws_vedirect_live.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 91a0992

Please sign in to comment.