#fieldbus #modbus #hardware #automation

tokio-modbus

Tokio-based Modbus library

9 releases

✓ Uses Rust 2018 edition

0.3.2 Apr 15, 2019
0.3.1 Apr 8, 2019
0.2.3 Dec 3, 2018
0.2.1 Apr 4, 2018
0.0.0 Aug 21, 2017

#2 in #hardware

Download history 4/week @ 2018-12-31 11/week @ 2019-01-07 7/week @ 2019-01-14 5/week @ 2019-01-21 4/week @ 2019-01-28 4/week @ 2019-02-04 1/week @ 2019-02-11 5/week @ 2019-02-18 10/week @ 2019-02-25 26/week @ 2019-03-04 7/week @ 2019-03-11 3/week @ 2019-03-18 47/week @ 2019-03-25 29/week @ 2019-04-01 36/week @ 2019-04-08

64 downloads per month
Used in 2 crates

MIT/Apache

122KB
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
~73K SLoC