mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 13:25:03 +01:00
remove init in wifi net, load config in connect method
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user