summaryrefslogtreecommitdiffstats
path: root/f020_setup.ino
diff options
context:
space:
mode:
authorAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-16 21:37:16 +0200
committerAnton L. Šijanec <sijanecantonluka@gmail.com>2020-04-16 21:37:16 +0200
commitd8e4a5b71da218293214acc9c9b6be2ccb095271 (patch)
tree348d29f793c8774c2438d58d28b360452f624023 /f020_setup.ino
parentupdejtttttt (diff)
downloadsijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar.gz
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar.bz2
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar.lz
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar.xz
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.tar.zst
sijaneciot-d8e4a5b71da218293214acc9c9b6be2ccb095271.zip
Diffstat (limited to 'f020_setup.ino')
-rw-r--r--f020_setup.ino9
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");