diff options
Diffstat (limited to 'f020_setup.ino')
-rw-r--r-- | f020_setup.ino | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/f020_setup.ino b/f020_setup.ino index 8e50af7..5c0c7e3 100644 --- a/f020_setup.ino +++ b/f020_setup.ino @@ -16,7 +16,7 @@ void setup() { } if (razhroscevanje) Serial.setDebugOutput(true); Serial.begin(9600); - Serial.println(); + Serial.println(""); String dostopnatocka[4]; if (SPIFFS.exists("/403/wifi-ap.txt")) { explode(readfile("/403/wifi-ap.txt"), ",", dostopnatocka, 4); @@ -27,6 +27,7 @@ void setup() { dostopnatocka[2] = "1"; // kanal dostopnatocka[3] = "0"; // skrito omrežje? } + Serial.println(""); Serial.print("nastavljam dostopno tocko. SSID: " + String(dostopnatocka[0]) + " geslo: " + String(dostopnatocka[1]) + " ... "); WiFi.mode(WIFI_AP); WiFi.softAPConfig(ipas, gatewayas, subnetas); @@ -34,8 +35,8 @@ void setup() { if (razhroscevanje) Serial.println("(razhroscevanje): wifi.softap --> IPv4 " + String(WiFi.softAPIP().toString())); ftpSrv.begin(program_ime, readfile("/403/webgeslo.txt")); - setSyncProvider(getNtpTime); - setSyncInterval(300); + setSyncProvider(timeSyncProvider); + setSyncInterval(30); @@ -61,6 +62,8 @@ void setup() { server.on("/api/tms", handleTms); server.on("/api/ren", handleRename); // \ prvi primer server.on("/api/mov", handleRename); // / uporabe aliasa + server.on("/api/fil", handleFile); + server.on("/api/tud", handleForcedTimeUpdate); server.on("/test", handleTest); server.begin(); if (razhroscevanje) Serial.println("(razhroscevanje): HTTP dela, vrata 80"); |