modbus

package
v0.0.0-...-3371691 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadOnlyModeStrings

func ReadOnlyModeStrings() []string

ReadOnlyModeStrings returns a slice of all String values of the enum

func StartProxy

func StartProxy(port int, config modbus.Settings, readOnly ReadOnlyMode) error

Types

type ReadOnlyMode

type ReadOnlyMode int
const (
	ReadOnlyFalse ReadOnlyMode = iota
	ReadOnlyDeny
	ReadOnlyTrue
)

func ReadOnlyModeString

func ReadOnlyModeString(s string) (ReadOnlyMode, error)

ReadOnlyModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func ReadOnlyModeValues

func ReadOnlyModeValues() []ReadOnlyMode

ReadOnlyModeValues returns all values of the enum

func (ReadOnlyMode) IsAReadOnlyMode

func (i ReadOnlyMode) IsAReadOnlyMode() bool

IsAReadOnlyMode returns "true" if the value is listed in the enum definition. "false" otherwise

func (ReadOnlyMode) String

func (i ReadOnlyMode) String() string

Jump to

Keyboard shortcuts

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