🪵 Removes serial logging

This commit is contained in:
Rune Harlyk
2024-06-09 14:10:53 +02:00
committed by Rune Harlyk
parent f62a8a38cb
commit 55347f1cac
7 changed files with 1 additions and 54 deletions
-12
View File
@@ -37,28 +37,16 @@ void WiFiStatus::begin()
void WiFiStatus::onStationModeConnected(WiFiEvent_t event, WiFiEventInfo_t info)
{
ESP_LOGI("WiFiStatus", "WiFi Connected.");
#ifdef SERIAL_INFO
Serial.println("WiFi Connected.");
#endif
}
void WiFiStatus::onStationModeDisconnected(WiFiEvent_t event, WiFiEventInfo_t info)
{
ESP_LOGI("WiFiStatus", "WiFi Disconnected. Reason code=%d", info.wifi_sta_disconnected.reason);
#ifdef SERIAL_INFO
Serial.print("WiFi Disconnected. Reason code=");
Serial.println(info.wifi_sta_disconnected.reason);
#endif
}
void WiFiStatus::onStationModeGotIP(WiFiEvent_t event, WiFiEventInfo_t info)
{
ESP_LOGI("WiFiStatus", "WiFi Got IP. localIP=%s, hostName=%s", WiFi.localIP().toString().c_str(), WiFi.getHostname());
#ifdef SERIAL_INFO
Serial.printf("WiFi Got IP. localIP=%s, hostName=%s\r\n", WiFi.localIP().toString().c_str(), WiFi.getHostname());
#endif
}
esp_err_t WiFiStatus::wifiStatus(PsychicRequest *request)