Interface LoaderOptions

Options to configure ESPLoader. LoaderOptions

interface LoaderOptions {
    baudrate: number;
    debugLogging?: boolean;
    enableTracing?: boolean;
    port?: SerialPort;
    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
port?: SerialPort

The port to initialize the transport class.

romBaudrate: number

The baud rate to be used during the initial ROM communication with the device.

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.