diff options
[iot/goam] Implemented storing and setting of static network data
Transitioning from #defines to using the NVS memory
1 files changed, 11 insertions, 2 deletions
| -rw-r--r-- | Year 3/Internet of things/goam/webserver-src/index.html | 13 |
diff --git a/Year 3/Internet of things/goam/webserver-src/index.html b/Year 3/Internet of things/goam/webserver-src/index.html index 00c17ef..fad90a9 100644 --- a/Year 3/Internet of things/goam/webserver-src/index.html +++ b/Year 3/Internet of things/goam/webserver-src/index.html @@ -27,12 +27,14 @@ article { img { max-width: calc(100vw - 16px - 2em); } -.button { - display: block; +.button, input { border: 0.25em solid gray; padding: 0.25em; background-color: lightgray; color: black; +} +a.button { + display: block; text-decoration: none; text-align: center; } @@ -46,6 +48,13 @@ img { <h1>Latest image</h1> <img src="/spiffs/capture.jpeg"/> <a class="button full-width" href="/spiffs/capture.jpeg" download="capture.jpeg">Click to Download</a> + + <h1>Configure static network</h1> + <form action="/network" method="POST"> + <input name="ssid" type="text" placeholder="Name (SSID)"> + <input name="pass" type="text" placeholder="Password"> + <input class="button" type="submit" value="Save"> + </form> </article> </body> </html> |
