설정 값 비휘발성 메모리 저장, start stop 로깅시 파일 리프레쉬

This commit is contained in:
2025-11-09 12:17:06 +00:00
parent 01810e0ff4
commit c707644c6a
2 changed files with 62 additions and 5 deletions

View File

@@ -1155,6 +1155,10 @@ const char index_html[] PROGMEM = R"rawliteral(
if (ws && ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({cmd: 'startLogging'}));
console.log('Start logging command sent');
// 로깅 시작 후 파일 목록 새로고침 (1초 후)
setTimeout(() => {
refreshFiles();
}, 1000);
}
}
@@ -1162,6 +1166,10 @@ const char index_html[] PROGMEM = R"rawliteral(
if (ws && ws.readyState === WebSocket.OPEN) {
ws.send(JSON.stringify({cmd: 'stopLogging'}));
console.log('Stop logging command sent');
// 로깅 종료 후 파일 목록 새로고침 (1초 후)
setTimeout(() => {
refreshFiles();
}, 1000);
}
}