From 5afd536c1c40d46397cb9e621456614a31d8e500 Mon Sep 17 00:00:00 2001 From: proddy Date: Thu, 7 Jan 2021 21:20:46 +0100 Subject: [PATCH] renames --- src/WebStatusService.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WebStatusService.cpp b/src/WebStatusService.cpp index d71efff31..0e387b8fa 100644 --- a/src/WebStatusService.cpp +++ b/src/WebStatusService.cpp @@ -43,7 +43,7 @@ void WebStatusService::onStationModeDisconnected(WiFiEvent_t event, WiFiEventInf } void WebStatusService::onStationModeGotIP(WiFiEvent_t event, WiFiEventInfo_t info) { EMSESP::logger().info(F("WiFi Connected with IP=%s, hostname=%s"), WiFi.localIP().toString().c_str(), WiFi.getHostname()); - EMSESP::system_.reset_system_check(); // send out heartbeat MQTT as soon as we have a connection + EMSESP::system_.init_wifi(); // send out heartbeat MQTT as soon as we have a connection } #elif defined(ESP8266) void WebStatusService::onStationModeDisconnected(const WiFiEventStationModeDisconnected & event) { @@ -51,7 +51,7 @@ void WebStatusService::onStationModeDisconnected(const WiFiEventStationModeDisco } void WebStatusService::onStationModeGotIP(const WiFiEventStationModeGotIP & event) { EMSESP::logger().info(F("WiFi Connected with IP=%s, hostname=%s"), event.ip.toString().c_str(), WiFi.hostname().c_str()); - EMSESP::system_.reset_system_check(); // send out heartbeat MQTT as soon as we have a connection + EMSESP::system_.init_wifi(); // send out heartbeat MQTT as soon as we have a connection } #endif