Skip to content

Commit

Permalink
Settings merge
Browse files Browse the repository at this point in the history
  • Loading branch information
jantenhove committed Jul 17, 2019
2 parents 2ca6fce + 4a638a9 commit ae60964
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MQTTPublisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,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
3 changes: 3 additions & 0 deletions Settings.example.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
//Hostname of ESP8266
#define WIFI_HOSTNAME "GoodWeLogger"

//Wifi SSID to connect to
#define WIFI_SSID "<your wifi ssid>"

Expand Down

0 comments on commit ae60964

Please sign in to comment.