Rust Modbus
Modbus implementation in pure Rust.
Usage
Add modbus
to your Cargo.toml
dependencies:
[]
= "0.2.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![BitValue::Off, BitValue::On, BitValue::Off, BitValue::On, BitValue::Off]);
See the documentation for usage examples and further reference.
License
Copyright © 2015 Falco Hirschenberger
Distributed under the MIT License.