mirror of https://github.com/arendst/Tasmota.git
parent
3cb334b14a
commit
b8ab5b3d4e
|
@ -2482,7 +2482,8 @@ void HandleInformation(void)
|
||||||
if (static_cast<uint32_t>(EthernetLocalIP()) != 0) {
|
if (static_cast<uint32_t>(EthernetLocalIP()) != 0) {
|
||||||
WSContentSend_P(PSTR("}1" D_HOSTNAME "}2%s%s"), EthernetHostname(), (Mdns.begun) ? ".local" : "");
|
WSContentSend_P(PSTR("}1" D_HOSTNAME "}2%s%s"), EthernetHostname(), (Mdns.begun) ? ".local" : "");
|
||||||
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), EthernetMacAddress().c_str());
|
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), EthernetMacAddress().c_str());
|
||||||
WSContentSend_P(PSTR("}1" D_IP_ADDRESS "}2%s"), EthernetLocalIP().toString().c_str());
|
WSContentSend_P(PSTR("}1" D_IP_ADDRESS " (eth)}2%s"), EthernetLocalIP().toString().c_str());
|
||||||
|
WSContentSend_P(PSTR("}1<hr/>}2<hr/>"));
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -2498,7 +2499,8 @@ void HandleInformation(void)
|
||||||
#endif
|
#endif
|
||||||
if (static_cast<uint32_t>(WiFi.localIP()) != 0) {
|
if (static_cast<uint32_t>(WiFi.localIP()) != 0) {
|
||||||
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), WiFi.macAddress().c_str());
|
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), WiFi.macAddress().c_str());
|
||||||
WSContentSend_P(PSTR("}1" D_IP_ADDRESS "}2%s"), WiFi.localIP().toString().c_str());
|
WSContentSend_P(PSTR("}1" D_IP_ADDRESS " (wifi)}2%s"), WiFi.localIP().toString().c_str());
|
||||||
|
WSContentSend_P(PSTR("}1<hr/>}2<hr/>"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!global_state.network_down) {
|
if (!global_state.network_down) {
|
||||||
|
@ -2507,8 +2509,9 @@ void HandleInformation(void)
|
||||||
WSContentSend_P(PSTR("}1" D_DNS_SERVER "}2%s"), IPAddress(Settings.ip_address[3]).toString().c_str());
|
WSContentSend_P(PSTR("}1" D_DNS_SERVER "}2%s"), IPAddress(Settings.ip_address[3]).toString().c_str());
|
||||||
}
|
}
|
||||||
if (static_cast<uint32_t>(WiFi.softAPIP()) != 0) {
|
if (static_cast<uint32_t>(WiFi.softAPIP()) != 0) {
|
||||||
|
WSContentSend_P(PSTR("}1<hr/>}2<hr/>"));
|
||||||
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), WiFi.softAPmacAddress().c_str());
|
WSContentSend_P(PSTR("}1" D_MAC_ADDRESS "}2%s"), WiFi.softAPmacAddress().c_str());
|
||||||
WSContentSend_P(PSTR("}1" D_IP_ADDRESS "}2%s"), WiFi.softAPIP().toString().c_str());
|
WSContentSend_P(PSTR("}1" D_IP_ADDRESS " (AP)}2%s"), WiFi.softAPIP().toString().c_str());
|
||||||
WSContentSend_P(PSTR("}1" D_GATEWAY "}2%s"), WiFi.softAPIP().toString().c_str());
|
WSContentSend_P(PSTR("}1" D_GATEWAY "}2%s"), WiFi.softAPIP().toString().c_str());
|
||||||
}
|
}
|
||||||
WSContentSend_P(PSTR("}1}2 ")); // Empty line
|
WSContentSend_P(PSTR("}1}2 ")); // Empty line
|
||||||
|
|
Loading…
Reference in New Issue