Esp32
@vcjdeboer/esp32v2026.09.12.2
01README
Drive an ESP32 running MicroPython from swamp over USB serial, with no Arduino IDE: flash the board, run Python or a firmware line-protocol, scan WiFi and Bluetooth, and record every exchange as versioned data with an explicit outcome.
02Models
@vcjdeboer/esp32-serialv2026.09.11.5esp32_serial.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| device? | string | Serial device path: /dev/cu.usbmodemXXXX on macOS, /dev/ttyACM0 on Linux. |
| baud | number | Line speed. USB-CDC ignores it; it matters for UART bridges. |
| timeoutMs | number | Default hard cap on waiting for the board's reply, per exchange. |
| idleMs | number | End a firmware reply once bytes have arrived and the line has been |
| settleMs | number | After opening the port, discard whatever arrives for this long, so a |
| holder | boolean | Keep the port open between calls in a detached worker (start it with |
| holderIdleTimeoutMs | number | The holder exits after this long without a request. |
| denoPath? | string | Deno binary used to run the serial worker. Defaults to $SWAMP_DENO, |
fn detect()
List serial device nodes on this host (cu.usbmodem* on macOS, ttyACM*/ttyUSB*
fn establish()
Open the port, interrupt whatever runs, identify the MicroPython build
fn repl(code: string, timeoutMs?: number, resume: boolean)
Run Python on the board through the raw REPL and record stdout and any
| Argument | Type | Description |
|---|---|---|
| code | string | Python source; may span lines |
| timeoutMs? | number | Wait for the code to finish; defaults to the global timeoutMs |
| resume | boolean | Soft-reset afterwards so the firmware runs again |
fn command(line: string, timeoutMs?: number)
Send one line to a firmware that answers one JSON object per line, and
| Argument | Type | Description |
|---|---|---|
| line | string | The command line, without newline |
| timeoutMs? | number |
03Previous Versions
2026.09.12.1
Added 1 models
2026.09.11.5
04Stats
A
100 / 100
Downloads
0
Archive size
46.7 KB
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types (deprecated)1/1earned
- Dependencies pass trust audit2/2earned
- Has description1/1earned
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
05Platforms