Manage additional terminal sources
multiterminal module allows you to configure an additional serial
terminal source. Incoming characters are accepted from both the internal
serial connection and the optional secondary connection.
get_secondary_terminal() → Optional[typing.BinaryIO]¶
Returns the current secondary terminal.
set_secondary_terminal(stream: typing.BinaryIO) → None¶
Read additional input from the given stream and write out back to it. This doesn’t replace the core stream (usually UART or native USB) but is mixed in instead.
Parameters: stream (stream) – secondary stream
clear_secondary_terminal() → None¶
Clears the secondary terminal.
schedule_secondary_terminal_read(socket: secondary_terminal) → None¶
In cases where the underlying OS is doing task scheduling, this notifies the OS when more data is available on the socket to read. This is useful as a callback for lwip sockets.