mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-25 11:56:04 +00:00
Added List2 for 1 phase meters. Will add List3 when List2 is confirmed
This commit is contained in:
@@ -184,7 +184,7 @@ void readHanPort()
|
||||
|
||||
void readHanPort_Aidon(int listSize)
|
||||
{
|
||||
if (listSize == (int)Aidon::List1 || listSize == (int)Aidon::List2 || listSize == (int)Aidon::List3)
|
||||
if (listSize == (int)Aidon::List1 || listSize == (int)Aidon::List2 || listSize == (int)Aidon::List3 || listSize == (int)Aidon::List2_p1 ||)
|
||||
{
|
||||
if (listSize == (int)Aidon::List2)
|
||||
{
|
||||
@@ -235,6 +235,16 @@ void readHanPort_Aidon(int listSize)
|
||||
data["U2"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL2)) / 10;
|
||||
data["U3"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL3)) / 10;
|
||||
}
|
||||
else if (listSize == (int)Aidon::List2_p1)
|
||||
{
|
||||
data["lv"] = hanReader.getString((int)Aidon_List2_p1::ListVersionIdentifier);
|
||||
data["id"] = hanReader.getString((int)Aidon_List2_p1::MeterID);
|
||||
data["type"] = hanReader.getString((int)Aidon_List2_p1::MeterType);
|
||||
data["P"] = hanReader.getInt((int)Aidon_List2_p1::ActiveImportPower);
|
||||
data["Q"] = hanReader.getInt((int)Aidon_List2_p1::ReactiveExportPower);
|
||||
data["I1"] = ((double) hanReader.getInt((int)Aidon_List2_p1::Current)) / 10;
|
||||
data["U1"] = ((double) hanReader.getInt((int)Aidon_List2_p1::Voltage)) / 10;
|
||||
}
|
||||
else if (listSize == (int)Aidon::List3)
|
||||
{
|
||||
data["lv"] = hanReader.getString((int)Aidon_List3::ListVersionIdentifier);
|
||||
|
||||
Reference in New Issue
Block a user