Added sd support and fixed proto malloc
This commit is contained in:
@@ -15,7 +15,7 @@ import type {
|
||||
} from '$lib/platform_shared/filesystem'
|
||||
import type { Result, DataResult, ListResult, ProgressCallback } from '$lib/types/models'
|
||||
|
||||
const MAX_CHUNK_SIZE = 2 ** 14
|
||||
const MAX_CHUNK_SIZE = 1024 * 64 // 64KB - must match ESP32 FS_MAX_CHUNK_SIZE
|
||||
|
||||
type TimeoutId = ReturnType<typeof setTimeout>
|
||||
type CleanupFn = (() => void) | null
|
||||
@@ -51,7 +51,7 @@ export class FileSystemClient {
|
||||
private downloadListenerCleanup: CleanupFn = null
|
||||
private completeListenerCleanup: CleanupFn = null
|
||||
private uploadCompleteListenerCleanup: CleanupFn = null
|
||||
private transferTimeout = 60000
|
||||
private transferTimeout = 300000
|
||||
|
||||
constructor() {
|
||||
this.setupListeners()
|
||||
|
||||
@@ -153,6 +153,8 @@ function createWebSocket() {
|
||||
}
|
||||
|
||||
const { tag, msg } = decodeMessage(frame.data)
|
||||
const key: keyof Message = (MESSAGE_TAG_TO_KEY.get(tag) ?? "") as keyof Message;
|
||||
console.log(key + ": ", msg[key])
|
||||
if (msg.correlationResponse) {
|
||||
const pending = pending_requests.get(msg.correlationResponse.correlationId)
|
||||
if (pending) {
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ export default defineConfig({
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://spot-micro.local/',
|
||||
target: 'http://192.168.50.141/',
|
||||
changeOrigin: true,
|
||||
ws: true
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user