Port accepted by IDFMonitor. Web Serial SerialPort and esptool-js WebUSBSerialPort both satisfy this shape.
SerialPort
WebUSBSerialPort
Byte stream from the device. null while the port is closed.
null
Byte stream to the device. null while the port is closed.
Close the port and release the device.
Resolves when the port is closed.
USB identity, when the browser exposes it.
Vendor and product ids, possibly empty.
Open the port.
Serial options. Only baudRate is required.
baudRate
Resolves when the port is open.
Set DTR and RTS. true is asserted, which the auto-reset circuit treats as pin-low.
true
Line states to apply.
Resolves when the control transfer finishes.
Port accepted by IDFMonitor. Web Serial
SerialPortand esptool-jsWebUSBSerialPortboth satisfy this shape.