Skip to content

Commit

Permalink
ssid.txt delay 50
Browse files Browse the repository at this point in the history
  • Loading branch information
dontsovcmc committed Mar 26, 2024
1 parent efcc26b commit 157e064
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ESP8266/src/portal/active_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ void start_active_point(Settings &sett, CalculatedData &cdata)
{ request->send(LittleFS, "/wifi_settings.html", F("text/html"), false, processor); });

// Файл характеристик всех найденных Wi-Fi сетей
server->on("/ssid.txt", HTTP_GET, [](AsyncWebServerRequest *request)
server->on("/ssid.txt", HTTP_GET, [](AsyncWebServerRequest *request)
{ request->send(LittleFS, "/ssid.txt", F("text/plain")); });

/*API*/
Expand Down
5 changes: 3 additions & 2 deletions ESP8266/src/setup.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
Версии прошивки для ESP
1.1.2 - 2024.03.12 - Anat0liyBM dontsovcmc
1. Поддержка изменения параметров по mqtt из ha
1. Поддержка изменения по mqtt из ha: текущих показаний, веса импульса, типа входа
2. Поменял regexp вводных данных ^(\d{1,8}([.,]\d{1,3})?)$
1.1.1 - 2024.02.27 - dontsovcmc
1. Поддержка , и . в показании
Expand Down
2 changes: 1 addition & 1 deletion ESP8266/src/wifi_helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,6 @@ void write_ssid_to_file()
}
}

delay(500); // Make sure the CREATE and LASTWRITE times are different
delay(50); // Make sure the CREATE and LASTWRITE times are different
file.close();
}

0 comments on commit 157e064

Please sign in to comment.