Rust Modbus
Modbus implementation in pure Rust.
Usage
Add modbus
to your Cargo.toml
dependencies:
[]
= "0.3.0"
Import the modbus
crate and use it's functions:
use ;
use tcp;
let mut client = new;
client.write_single_coil.unwrap;
client.write_single_coil.unwrap;
let res = client.read_coils.unwrap;
// res == vec![Coil::Off, Coil::On, Coil::Off, Coil::On, Coil::Off]);
See the documentation for usage examples and further reference.
License
Copyright © 2015 Falco Hirschenberger
Distributed under the MIT License.