4 releases

0.2.2 Aug 24, 2021
0.2.1 May 21, 2020
0.2.0 Apr 30, 2020
0.1.0 Feb 12, 2019

#171 in Asynchronous

MIT/Apache

14KB
202 lines

tokio-lxi

Crates.io Docs.rs Github Actions Appveyor Codecov.io License

LXI protocol abstractions for Tokio with async/.await support.

Example

use tokio;

use tokio_lxi::LxiDevice;

#[tokio::main]
async fn main() -> Result<(), tokio_lxi::Error> {
    let addr = "10.0.0.9:5025".parse().unwrap();
    let mut device = LxiDevice::connect(&addr).await?;
    device.send("*IDN?").await?;
    let reply = device.receive().await?;
    println!("{}", reply);

    Ok(())
}

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~0.5–3MB
~61K SLoC