3 releases (breaking)

0.3.0 Jun 26, 2024
0.2.0 Mar 5, 2024
0.1.3 Feb 29, 2024
0.1.2 Feb 29, 2024
0.1.1 Feb 28, 2024

#40 in #modbus


Used in modbus-mapping

MIT license

33KB
723 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

~240–690KB
~16K SLoC