Summary Files Commits Branches @commit @diff @stats
path: root / Year 3 / Internet of things / goam / webserver-src
diff options
context:
space:
mode:
Commit7c9c68eaba5ed7c75495eb6607a8155110c2df43 (patch)
Author
 Syndamia <kamen@syndamia.com>
2024-05-27 13:18:32 +0300
Committer
 Syndamia <kamen@syndamia.com>
2024-05-27 13:18:32 +0300
Files14967cc55390b7d39f70482c6a7102fb776688e9 /Year 3/Internet of things/goam/webserver-src
uni-projects-7c9c68eaba5ed7c75495eb6607a8155110c2df43.tar
uni-projects-7c9c68eaba5ed7c75495eb6607a8155110c2df43.tar.gz
uni-projects-7c9c68eaba5ed7c75495eb6607a8155110c2df43.zip
Parent06e659dec139aa0d08d5fff433e9ffdec0a736b5 (diff)
[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.html13
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>