Skip to main content

Esp32

@vcjdeboer/esp32v2026.09.12.2· 1d agoMODELS
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.

02Models1
@vcjdeboer/esp32-serialv2026.09.11.5esp32_serial.ts

Global Arguments

ArgumentTypeDescription
device?stringSerial device path: /dev/cu.usbmodemXXXX on macOS, /dev/ttyACM0 on Linux.
baudnumberLine speed. USB-CDC ignores it; it matters for UART bridges.
timeoutMsnumberDefault hard cap on waiting for the board's reply, per exchange.
idleMsnumberEnd a firmware reply once bytes have arrived and the line has been
settleMsnumberAfter opening the port, discard whatever arrives for this long, so a
holderbooleanKeep the port open between calls in a detached worker (start it with
holderIdleTimeoutMsnumberThe holder exits after this long without a request.
denoPath?stringDeno 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
ArgumentTypeDescription
codestringPython source; may span lines
timeoutMs?numberWait for the code to finish; defaults to the global timeoutMs
resumebooleanSoft-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
ArgumentTypeDescription
linestringThe command line, without newline
timeoutMs?number
03Previous Versions2
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