wifi connection working

This commit is contained in:
Neythen
2021-11-18 19:41:50 +00:00
parent b4c7c505f0
commit 9c6ad0cde2
17 changed files with 58 additions and 21 deletions

View File

@@ -1221,6 +1221,13 @@ joinNetworkBtn.addEventListener("click", () => {
setTimeout(() => {
connectedText.style.display = "none";
}, 2000);
data = {country:countryCodeInput.value, ssid:wifiSsidInput.value, pwd:wifiPassInput.value}
fetch("/wifi", {
method: "POST",
body: JSON.stringify(data),
});
});
// change display format