Function serial_port::set_connection_listener
source · pub fn set_connection_listener(
sender: Sender<SerialPortAddress>
) -> &'static Sender<SerialPortAddress>
Expand description
A temporary hack to allow the serial port interrupt handler to inform a listener on the other end of this channel that a new connection has been detected on one of the serial ports, i.e., that it received some data on a serial port that didn’t expect it or wasn’t yet set up to handle incoming data.