diff --git a/io/zenoh-links/zenoh-link-serial/src/unicast.rs b/io/zenoh-links/zenoh-link-serial/src/unicast.rs index 158b4ec7ee..2600040ecd 100644 --- a/io/zenoh-links/zenoh-link-serial/src/unicast.rs +++ b/io/zenoh-links/zenoh-link-serial/src/unicast.rs @@ -183,7 +183,16 @@ impl LinkUnicastTrait for LinkUnicastSerial { #[inline(always)] fn get_interface_names(&self) -> Vec { - vec![String::from("serial")] + match z_serial::get_available_port_names() { + Ok(interfaces) => { + log::debug!("get_interface_names for serial: {:?}", interfaces); + interfaces + } + Err(e) => { + log::debug!("get_interface_names for serial failed: {:?}", e); + vec![] + } + } } #[inline(always)]