Object that can wiggle DTR/RTS and wait.

interface SignalControl {
    setSignals(signals): Promise<void>;
    sleep(ms): Promise<void>;
}

Methods

  • Apply line states. true means asserted (pin low on the auto-reset circuit).

    Parameters

    • signals: SerialOutputSignals

      Lines to change.

    Returns Promise<void>

    Resolves when the adapter has applied them.

  • Wait.

    Parameters

    • ms: number

      Milliseconds.

    Returns Promise<void>

    Resolves after the delay.