modbus-client

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2021 License: BSD-3-Clause Imports: 12 Imported by: 0

README

Modbus Client

This Modbus Client serves as a Middleware, translating HTTP requests to ModbusRTU serial requests. In order to maximize serial usage, a queue is used to keep the serial worker always occupied.

Dependencies

go get github.com/goburrow/modbus
go get github.com/gorilla/mux

Usage

Usage: ./modbus-client [optional arguments] serialDevice
  -P int
        serial port (default 8080)
  -b int
        serial baud rate  (default 19200)
  -d int
        modbus data bits: 5, 6, 7 or 8 (default 8)
  -l    If the flag is set, the server is only avalilable from localhost.
  -p string
        parity: N - None, E - Even, O - Odd 
        (The use of no parity requires 2 stop bits.) (default "N")
  -s int
        modbus stop bits: 1 or 2 (default 2)
  -t int
        serial timeout in ms (default 1000)

HTTP endpoints

openapi.yaml

root

/api/v1

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL