자동로깅 추가, usb port추가
This commit is contained in:
@@ -229,6 +229,8 @@ void setup() {
|
||||
Serial.printf(" RTC: %s | Time: %s\n",
|
||||
rtcStatus.available ? "OK" : "NO",
|
||||
rtcStatus.timeSynced ? "Valid" : "Pending");
|
||||
Serial.printf(" AutoStart: %s\n",
|
||||
sdAutoStart ? "ON (logging started)" : "OFF");
|
||||
Serial.println("============================================\n");
|
||||
}
|
||||
|
||||
@@ -244,12 +246,13 @@ void loop() {
|
||||
lastReport = millis();
|
||||
char timeBuf[24];
|
||||
getTimestamp(timeBuf, sizeof(timeBuf));
|
||||
Serial.printf("[SYS] %s | Heap:%d | SD:%s | WS:%d | RTC:%s | STA:%s\n",
|
||||
Serial.printf("[SYS] %s | Heap:%d | SD:%s | WS:%d | RTC:%s | STA:%s | Auto:%s\n",
|
||||
timeBuf,
|
||||
ESP.getFreeHeap(),
|
||||
sdCardPresent() ? "OK" : "FAIL",
|
||||
webSocket.connectedClients(),
|
||||
rtcStatus.available ? "OK" : "NO",
|
||||
staConnected ? "ON" : "OFF");
|
||||
staConnected ? "ON" : "OFF",
|
||||
sdAutoStart ? "ON" : "OFF");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user