Function find_port

Source
pub fn find_port() -> Option<String>
Expand description

Finds and returns the COM port that matches the description “USB-SERIAL CH340”.

§Returns

An Option<String> containing the port name if found, otherwise None.