Crate modbus[−][src]
Expand description
Modbus implementation in pure Rust.
Examples
use modbus::{Client, Coil};
use modbus::tcp;
let mut cfg = tcp::Config::default();
let mut client = tcp::Transport::new_with_cfg("127.0.0.1", cfg).unwrap();
assert!(client.write_single_coil(0, Coil::On).is_ok());
Re-exports
Modules
A set of objects which automatically change their register or coil value when they go out of scope
The Modbus TCP backend implements a Modbus variant used for communication over TCP/IPv4 networks.
Enums
Single bit status values, used in read or write coil functions
Combination of Modbus, IO and data corruption errors
Modbus exception codes returned from the server.
InvalidData
reasons
Traits
Type Definitions
Result type used to nofify success or failure in communication