Skip to content

Commit

Permalink
Hostname zelf kunnen instellen.
Browse files Browse the repository at this point in the history
Volgens mij is de hostname nu niet instelbaar, met deze toevoeging wel hopelijk.
  • Loading branch information
ThinkPadNL authored Mar 19, 2018
1 parent 3bcd810 commit 8f691b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GoodWeLogger.ino
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ void setup()
settings->pvoutputApiKey = PVOUTPUT_API_KEY;
settings->pvoutputSystemId = PVOUTPUT_SYSTEM_ID;
settings->pvoutputUpdateInterval = PVOUTPUT_UPDATE_INTERVAL;
settings->wifiHostname = WIFI_HOSTNAME;
settings->wifiSSID = WIFI_SSID;
settings->wifiPassword = WIFI_PASSWORD;
settings->timezone = TIMEZONE;
Expand All @@ -49,6 +50,7 @@ void setup()
Serial.begin(115200);
Serial.println("Booting");
WiFi.mode(WIFI_STA);
WiFi.hostname(settings->wifiHostname.c_str());
WiFi.begin(settings->wifiSSID.c_str(), settings->wifiPassword.c_str());

Serial.print("Connecting to WiFi");
Expand Down

0 comments on commit 8f691b0

Please sign in to comment.