Interface LoaderOptions

Options to configure ESPLoader. LoaderOptions

interface LoaderOptions {
    baudrate: number;
    debugLogging?: boolean;
    enableTracing?: boolean;
    port?: SerialPort;
    resetConstructors?: ResetConstructors;
    romBaudrate?: number;
    serialOptions?: SerialOptions;
    terminal?: IEspLoaderTerminal;
    transport: Transport;
}

Properties

baudrate: number

The baud rate to be used for communication with the device.

debugLogging?: boolean

Flag indicating whether to enable debug logging for the loader (optional).

enableTracing?: boolean

Indicate if trace messages should be enabled or not.

port?: SerialPort

The port to initialize the transport class.

resetConstructors?: ResetConstructors

Reset functions for connection. If undefined will use default ones.

romBaudrate?: number

Baud rate used to talk to the ROM bootloader before the stub is running. Set equal to baudrate to skip the port reopen entirely, which avoids rebooting boards whose EN/IO0 lines are disturbed by reopening the port.

serialOptions?: SerialOptions

Set of options for SerialPort class.

An optional terminal interface to interact with the loader during the process.

transport: Transport

The transport mechanism to communicate with the device.