자동로깅 추가, usb port추가

This commit is contained in:
2026-02-27 08:54:14 +00:00
parent 7e0e65297b
commit 961680e5ec
7 changed files with 291 additions and 21 deletions

View File

@@ -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");
}
}