Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
modbus
✓ github.com/simonvetter/modbus
Connects to a Modbus TCP device.
package main
import (
"fmt"
"github.com/simonvetter/modbus"
)
func main() {
client, err := modbus.NewClient(&modbus.ClientConfiguration{
URL: "tcp://localhost:502",
})
if err != nil {
panic(err)
}
defer client.Close()
fmt.Println("Connected to Modbus device")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
1.6.4latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.