A tokio-based modbus library.
Add this to your Cargo.toml
:
toml
[dependencies]
tokio-modbus = "*"
If you like to use Modbus TCP only:
toml
[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["tcp"] }
If you like to use Modbus RTU only:
toml
[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["rtu"] }
Various examples for Modbus RTU and TCP using either the asynchronous or synchronous API can be found in the [examples] (https://github.com/slowtec/tokio-modbus/tree/master/examples) folder.
Copyright 2017-2019 slowtec GmbH
MIT/Apache-2.0