diff options
author | Anton Šijanec <sijanecantonluka@gmail.com> | 2020-01-12 18:08:39 +0100 |
---|---|---|
committer | Anton Šijanec <sijanecantonluka@gmail.com> | 2020-01-12 18:08:39 +0100 |
commit | 6070b2e84adbe47ed8ff3da96d66e46160a3c51f (patch) | |
tree | 9b753099a0d1fc2cbc7c26e733e7fb0441cb1271 /f020_setup.ino | |
parent | vse ostalo (diff) | |
download | sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar.gz sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar.bz2 sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar.lz sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar.xz sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.tar.zst sijaneciot-6070b2e84adbe47ed8ff3da96d66e46160a3c51f.zip |
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); |