remove init in wifi net, load config in connect method

This commit is contained in:
2018-11-08 17:37:20 +01:00
parent 0a2f442650
commit 34ba143d5b
2 changed files with 1 additions and 5 deletions

View File

@@ -17,11 +17,8 @@ WiFiNet::WiFiNet(
config.connectTimeout = connectTimeout;
}
Network* WiFiNet::init() {
config.fromFile("/config.json");
return this;
}
int WiFiNet::connect(){
config.fromFile("/config.json");
WiFi.hostname(config.hostname);
Serial.println("Hostname: " + config.hostname);
if(!connectStation()) {