Skip to main content

serial_bridge

Function serial_bridge 

Source
pub async fn serial_bridge<U: BufferedSerial>(
    chan_read: impl Read<Error = Error>,
    chan_write: impl Write<Error = Error>,
    uart: &U,
) -> Result<(), Error>
Expand description

Forwards an incoming SSH connection to/from the local UART, until the connection drops.

ยงErrors

Returns an error if the SSH connection fails.