Expand description
Helpers for normalizing port lists returned by serialport-rs.
Functionsยง
- apply_
android_ single_ port_ per_ device - When
single_port_per_deviceis true, keeps one USB serial port per Android device (lowest port index; paths without#are port 0). - apply_
single_ port_ per_ device - macOS exposes each serial device twice:
/dev/cu.*(callout) and/dev/tty.*(dial-in).serialport-rsreturns both; Node.jsSerialPort.list()keeps callout only. - enumerate_
available_ ports - Enumerate available serial ports (desktop), with optional macOS de-duplication.
iOS has no local serial ports (only
tcp://works there): an empty list. - port_
info_ from_ type - Build metadata map for one enumerated port (desktop).