Function mavlink::connect [] [src]

pub fn connect(address: &str) -> Result<Box<MavConnection + Sync + Send>>

Connect to a MAVLink node by address string.

The address must be in one of the following formats:

  • tcp:<addr>:<port>
  • udpin:<addr>:<port>
  • udpout:<addr>:<port>

The type of the connection is determined at runtime based on the address type, so the connection is returned as a trait object.