From 058dc658c1acd907dced0c4eae9fa9a0c8e9ee32 Mon Sep 17 00:00:00 2001 From: Gunnar Skjold Date: Wed, 12 Feb 2020 13:16:49 +0100 Subject: [PATCH] Switched to reactive import for Q --- lib/HanToJson/src/HanToJson.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/HanToJson/src/HanToJson.cpp b/lib/HanToJson/src/HanToJson.cpp index ee8f7185..8fd26d34 100644 --- a/lib/HanToJson/src/HanToJson.cpp +++ b/lib/HanToJson/src/HanToJson.cpp @@ -134,7 +134,7 @@ static void hanToJsonAidon3phaseIT(int listSize, JsonObject& data, HanReader& ha data["type"] = hanReader.getString( (int)Aidon_List3PhaseIT::MeterType); int p = hanReader.getInt( (int)Aidon_List3PhaseIT::ActiveImportPower); data["P"] = p; - data["Q"] = hanReader.getInt( (int)Aidon_List3PhaseIT::ReactiveExportPower); + data["Q"] = hanReader.getInt( (int)Aidon_List3PhaseIT::ReactiveImportPower); double i1 = ((double) hanReader.getInt( (int)Aidon_List3PhaseIT::CurrentL1)) / 10; double i3 = ((double) hanReader.getInt( (int)Aidon_List3PhaseIT::CurrentL3)) / 10; double u1 = ((double) hanReader.getInt( (int)Aidon_List3PhaseIT::VoltageL1)) / 10;