@zixe/flash-esp32-web
Version:
Flash ESP32 utility for the web using esptool-js and Web Serial API.
12 lines (11 loc) • 335 B
TypeScript
export interface ESPFlashFile {
file: File | Blob;
offset: number;
name?: string;
}
export interface FlashOptions {
baudRate?: number;
onLog?: (msg: string) => void;
onProgress?: (stage: string, percent: number) => void;
}
export type FlashStage = "connecting" | "flashing" | "verifying" | "success" | "error";