mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-04 21:15:52 +00:00
getWifiReconnects -> getNetworkReconnects
This commit is contained in:
@@ -51,7 +51,7 @@ void NetworkStatus::networkStatus(AsyncWebServerRequest * request) {
|
||||
root["ssid"] = WiFi.SSID();
|
||||
root["bssid"] = WiFi.BSSIDstr();
|
||||
root["channel"] = WiFi.channel();
|
||||
root["reconnect_count"] = emsesp::EMSESP::network_.getWifiReconnects();
|
||||
root["reconnect_count"] = emsesp::EMSESP::network_.getNetworkReconnects();
|
||||
root["subnet_mask"] = WiFi.subnetMask().toString();
|
||||
|
||||
if (WiFi.gatewayIP() != INADDR_NONE) {
|
||||
|
||||
@@ -89,10 +89,6 @@ class Network {
|
||||
void begin();
|
||||
void loop();
|
||||
|
||||
uint16_t getWifiReconnects() const {
|
||||
return connectcount_;
|
||||
}
|
||||
|
||||
uint32_t network_ip() const {
|
||||
return network_ip_;
|
||||
}
|
||||
@@ -121,7 +117,7 @@ class Network {
|
||||
return has_ipv6_ && (network_iface_ == NetIface::WIFI || network_iface_ == NetIface::ETHERNET);
|
||||
}
|
||||
|
||||
uint16_t getWifiReconnects() {
|
||||
uint16_t getNetworkReconnects() {
|
||||
return connectcount_;
|
||||
}
|
||||
|
||||
|
||||
@@ -998,7 +998,7 @@ void System::heartbeat_json(JsonObject output) {
|
||||
int8_t rssi = WiFi.RSSI();
|
||||
output["rssi"] = rssi;
|
||||
output["wifistrength"] = wifi_quality(rssi);
|
||||
output["wifireconnects"] = EMSESP::network_.getWifiReconnects();
|
||||
output["wifireconnects"] = EMSESP::network_.getNetworkReconnects();
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -2451,7 +2451,7 @@ bool System::command_info(const char * value, const int8_t id, JsonObject output
|
||||
node["network"] = "WiFi";
|
||||
node["hostname"] = WiFi.getHostname();
|
||||
node["RSSI"] = WiFi.RSSI();
|
||||
node["WIFIReconnects"] = EMSESP::network_.getWifiReconnects();
|
||||
node["WIFIReconnects"] = EMSESP::network_.getNetworkReconnects();
|
||||
// node["MAC"] = WiFi.macAddress();
|
||||
// node["IPv4 address"] = uuid::printable_to_string(WiFi.localIP()) + "/" + uuid::printable_to_string(WiFi.subnetMask());
|
||||
// node["IPv4 gateway"] = uuid::printable_to_string(WiFi.gatewayIP());
|
||||
|
||||
Reference in New Issue
Block a user