Skip to content

Commit

Permalink
publish correct values to mqtt for fac2 and fac3 in case of DTSeries …
Browse files Browse the repository at this point in the history
…inverter
  • Loading branch information
KeesV committed Apr 14, 2018
1 parent 985c3dd commit 3301791
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MQTTPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ void MQTTPublisher::handle()
//also send tri fase info
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/vac2", String(inverters[cnt].vac2, 1));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/iac2", String(inverters[cnt].iac2, 1));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/fac2", String(inverters[cnt].iac2, 2));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/fac2", String(inverters[cnt].fac2, 2));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/vac3", String(inverters[cnt].vac3, 1));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/iac3", String(inverters[cnt].iac3, 1));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/fac3", String(inverters[cnt].iac3, 2));
if (sendOk) sendOk = publishOnMQTT(prependTopic, "/fac3", String(inverters[cnt].fac3, 2));
}
}
else
Expand Down

0 comments on commit 3301791

Please sign in to comment.