{"repo":"slowtec/tokio-modbus","free":true,"listed":false,"github":"https://github.com/slowtec/tokio-modbus","clone":"git clone https://github.com/slowtec/tokio-modbus.git","description":"A tokio-based modbus library","language":"Rust","stars":561,"topics":["modbus","tokio","client","server","async","rust","non-blocking","fieldbus","library","automation"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"tokio-modbus A pure Rust Modbus library based on tokio. Modbus is based on a master/slave communication pattern. To avoid confusion with the Tokio terminology the master is called client and the slave is called server in this library. Features - Pure Rust library - Modbus TCP or RTU at your choice - Both async (non-blocking, default) and sync (blocking, optional) - Client API - Server implementations - for out-of-the-box usage or - as a starting point for a customized implementation - Open source (MIT/Apache-2.0) Installation Add this to your Cargo.toml : Cargo Features - \"rtu\" : Asynchronous RTU client (default) - \"tcp\" : Asynchronous TCP client (default) - \"rtu-sync : Synchronous RTU client - \"tcp-sync\" : Synchronous TCP client - \"rtu-server\" : (Asynchronous) RTU server - \"tcp-server\" : (Asynchronous) TCP server - \"rtu-over-tcp-server\" : (Asynchronous) RTU over TCP server Examples If you only need an asynchronous TCP client add the following line to your Cargo.toml file: For an asynchronous RTU client: For an RTU server: For a TCP server: Examples Various examples for Modbus RTU and TCP using either the asynchronous or synchronous API can be found in the examples folder. Testing The workspace contains documentation, tests, and examples for all available features. Protocol-Specification - Modbus Application Protocol Specification v1.1b3 (PDF) - Modbus over serial line specification and implementation guide v1.02 (PDF) - Modbus Messaging on TCP/IP Implementation Guide v1.0b (","default_branch":null,"files":null,"tree":[],"storefront":"/r/slowtec","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/slowtec/tokio-modbus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}