Merge branch 'main' into Standby
This commit is contained in:
@@ -171,6 +171,7 @@
|
|||||||
name="password"
|
name="password"
|
||||||
placeholder="WLAN-Passwort eingeben"
|
placeholder="WLAN-Passwort eingeben"
|
||||||
/>
|
/>
|
||||||
|
<div>STA IP-Adresse: <span id="STAipAddress">Laden...</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="button-group">
|
<div class="button-group">
|
||||||
<button type="submit" id="wifiSubmitBtn" class="btn btn-primary">
|
<button type="submit" id="wifiSubmitBtn" class="btn btn-primary">
|
||||||
@@ -472,6 +473,8 @@
|
|||||||
.then((data) => {
|
.then((data) => {
|
||||||
document.getElementById("ipAddress").textContent =
|
document.getElementById("ipAddress").textContent =
|
||||||
data.ip || "Unbekannt";
|
data.ip || "Unbekannt";
|
||||||
|
document.getElementById("STAipAddress").textContent =
|
||||||
|
data.ipSTA || "Unbekannt";
|
||||||
document.getElementById("channel").textContent =
|
document.getElementById("channel").textContent =
|
||||||
data.channel || "Unbekannt";
|
data.channel || "Unbekannt";
|
||||||
document.getElementById("macAddress").textContent =
|
document.getElementById("macAddress").textContent =
|
||||||
|
|||||||
@@ -161,6 +161,8 @@ void setupRoutes() {
|
|||||||
// IP address
|
// IP address
|
||||||
IPAddress ip = WiFi.softAPIP();
|
IPAddress ip = WiFi.softAPIP();
|
||||||
doc["ip"] = ip.toString();
|
doc["ip"] = ip.toString();
|
||||||
|
IPAddress ipSTA = WiFi.localIP();
|
||||||
|
doc["ipSTA"] = ipSTA.toString();
|
||||||
doc["channel"] = WiFi.channel();
|
doc["channel"] = WiFi.channel();
|
||||||
|
|
||||||
// MAC address
|
// MAC address
|
||||||
|
|||||||
Reference in New Issue
Block a user