velxio/frontend/src/store
David Montero Crespo f03f80d1b3 fix(micropython): sleepy isconnected()/status() — busy-waits starved idleSkip
The canonical MicroPython connect idiom is `while not wlan.isconnected():
pass` — a pure Python busy-wait, and most gallery WiFi examples use it.
The emulated CPU only fast-forwards through WAITI idles, so a busy-wait
pins the sim at real execution speed (~2% of the chip in a browser tab).
Measured on the classic-ESP32 engine with a marker-bracketed harness: the
connect+DHCP phase costs ~1.5M busy instructions under a sleepy poll loop
and ~194M under the busy-wait — same firmware, same radio, 130x apart.
At browser speed that is close to a minute of wall clock for the connect
alone, which reads as "WiFi hangs" and got diagnosed as exactly that.

The proxy now sleeps 20ms per unanswered isconnected()/status() poll,
turning the user's busy loop into an idle loop without touching their
code. Re-measured end-to-end with the real prelude: 226.8M -> 64.3M busy
steps, and the made-up-SSID example connects with a 10.13.37.x lease on
the in-browser engine.
2026-08-10 22:58:30 +02:00
..
serialBatcher.ts
…
useCompileLogsStore.ts
…
useEditorStore.ts feat(editor): folders - create/delete folder trees in the file explorer 2026-08-05 06:48:38 +02:00
useElectricalStore.ts feat(avr): drive inputs from real circuit, modeling the internal pull-up 2026-06-26 20:18:41 +02:00
useMessageDialogStore.ts feat(ui): replace native confirm() dialogs with reusable modal 2026-07-18 01:59:18 +02:00
useOscilloscopeStore.ts
…
useProjectStore.ts feat(metrics): compiles and runs remember which gallery example they came from 2026-08-09 22:34:26 +02:00
useSimulatorStore.ts fix(micropython): sleepy isconnected()/status() — busy-waits starved idleSkip 2026-08-10 22:58:30 +02:00
useVfsStore.ts feat(pi-family): one-click run UX — autoRun + guestHome + clean serial mirror 2026-07-28 16:28:02 +02:00