2 unstable releases

0.2.0 Mar 5, 2024
0.1.3 Feb 29, 2024
0.1.2 Feb 29, 2024
0.1.1 Feb 28, 2024

#39 in #modbus

31 downloads per month
Used in modbus-mapping

MIT license

32KB
712 lines

modbus-mapping

An API for Modbus Register Mapppings based on tokio-modbus

Docs.rs crates.io

Repo URL

Usage

Check examples folder for usage.

The device and client examples pair is to be run at the same time in two different terminals. The RTU examples assume that virtual serial port has been created beforehand

socat -d -d pty,raw,echo=0,link=/tmp/ttys001 pty,raw,echo=0,link=/tmp/ttys002

Development

Check justfile.


lib.rs:

Macros to derive the modbus-mapping traits

Dependencies

~340–790KB
~19K SLoC