11 releases

✓ Uses Rust 2018 edition

0.3.4 May 21, 2019
0.3.3 May 16, 2019
0.3.2 Apr 15, 2019
0.2.3 Dec 3, 2018
0.0.0 Aug 21, 2017

#36 in Asynchronous

Download history 4/week @ 2019-02-05 2/week @ 2019-02-12 4/week @ 2019-02-19 25/week @ 2019-02-26 12/week @ 2019-03-05 6/week @ 2019-03-12 4/week @ 2019-03-19 46/week @ 2019-03-26 45/week @ 2019-04-02 39/week @ 2019-04-09 9/week @ 2019-04-16 20/week @ 2019-04-23 10/week @ 2019-04-30 28/week @ 2019-05-07 59/week @ 2019-05-14

149 downloads per month
Used in 2 crates

MIT/Apache

124KB
3K SLoC

tokio-modbus

A tokio-based modbus library.

Crates.io version Docs Build Status Build status Coverage Status

Features

  • pure Rust library
  • async (non-blocking)
  • sync (blocking)
  • Modbus TCP
  • Modbus RTU
  • Client & Server
  • Open Source (MIT/Apache-2.0)

Installation

Add this to your Cargo.toml:

[dependencies]
tokio-modbus = "*"

If you like to use Modbus TCP only:

[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["tcp"] }

If you like to use Modbus RTU only:

[dependencies]
tokio-modbus = { version = "*", default-features = false, features = ["rtu"] }

Examples

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.

Protocol-Specification

License

Copyright 2017-2019 slowtec GmbH

MIT/Apache-2.0

Dependencies

~4.5MB
~75K SLoC