diff options
Diffstat (limited to 'f020_setup.ino')
-rw-r--r-- | f020_setup.ino | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/f020_setup.ino b/f020_setup.ino index 28de3b5..8e50af7 100644 --- a/f020_setup.ino +++ b/f020_setup.ino @@ -29,13 +29,9 @@ void setup() { } Serial.print("nastavljam dostopno tocko. SSID: " + String(dostopnatocka[0]) + " geslo: " + String(dostopnatocka[1]) + " ... "); WiFi.mode(WIFI_AP); + WiFi.softAPConfig(ipas, gatewayas, subnetas); WiFi.softAP(dostopnatocka[0].c_str(), dostopnatocka[1].c_str(), dostopnatocka[2].toInt(), dostopnatocka[3].toInt()); if (razhroscevanje) Serial.println("(razhroscevanje): wifi.softap --> IPv4 " + String(WiFi.softAPIP().toString())); - if (MDNS.begin(readfile("/403/hostname.txt"))) { // Start the mDNS responder for esp8266.local - if (razhroscevanje) Serial.println("(razhroscevanje): mDNS dela, " + readfile("/403/hostname.txt")); - } else { - if (razhroscevanje) Serial.println("(razhroscevanje): mDNS fejl"); - } ftpSrv.begin(program_ime, readfile("/403/webgeslo.txt")); setSyncProvider(getNtpTime); |