summaryrefslogtreecommitdiffstats
path: root/f020_setup.ino
diff options
context:
space:
mode:
authorAnton Šijanec <sijanecantonluka@gmail.com>2020-01-12 18:08:39 +0100
committerAnton Šijanec <sijanecantonluka@gmail.com>2020-01-12 18:08:39 +0100
commit6070b2e84adbe47ed8ff3da96d66e46160a3c51f (patch)
tree9b753099a0d1fc2cbc7c26e733e7fb0441cb1271 /f020_setup.ino
parentvse ostalo (diff)
downloadsijaneciot-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.ino6
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);