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