Rust Modbus
Modbus implementation in pure Rust.
Usage
Add modbus
to your Cargo.toml
dependencies:
[]
= "0.0.4"
Import the modbus
crate and use it's functions:
extern crate modbus;
use ;
use ;
let mut ctx = new;
write_single_coil.unwrap;
write_single_coil.unwrap;
let res = 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.