mirror of
https://gitlab.com/wirelos/sprocket-plugin-web.git
synced 2025-12-14 05:56:49 +01:00
Use new config folder
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
<span class="heading">Settings</span>
|
||||
<div class="content">
|
||||
<h2>Network</h2>
|
||||
<div class="Form" data-fileName="/config.json" data-name="configForm" data-from="/config.json" data-endpoint="/config"></div>
|
||||
<div class="Form" data-fileName="/config/wifi.json" data-name="configForm" data-from="/config/wifi.json" data-endpoint="/config"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="settings container collapsible">
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
;[platformio]
|
||||
;env_default = basic
|
||||
|
||||
[common]
|
||||
framework = arduino
|
||||
platform = espressif8266
|
||||
@@ -12,12 +9,11 @@ lib_deps =
|
||||
TaskScheduler
|
||||
SPIFFS
|
||||
ArduinoJson
|
||||
ArduinoOTA
|
||||
ESPAsyncTCP
|
||||
ESP8266mDNS
|
||||
ESP Async WebServer
|
||||
https://gitlab.com/wirelos/sprocket-lib.git#develop
|
||||
https://gitlab.com/wirelos/sprocket-network-wifi.git
|
||||
https://gitlab.com/wirelos/sprocket-network-wifi.git#next
|
||||
|
||||
[env:basic]
|
||||
src_filter = +<*> -<examples/> +<examples/basic/>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
WebConfigPlugin::WebConfigPlugin(AsyncWebServer *webServer)
|
||||
{
|
||||
server = webServer;
|
||||
server->serveStatic("/config.json", SPIFFS, "config.json");
|
||||
server->serveStatic("/config/wifi.json", SPIFFS, "config/wifi.json");
|
||||
}
|
||||
void WebConfigPlugin::activate(Scheduler *userScheduler)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user