설정 값 비휘발성 메모리 저장, start stop 로깅시 파일 리프레쉬
This commit is contained in:
8
index.h
8
index.h
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user