Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(e error)
Check : checks if the input error has a value to "panic" or ignores it if it's nil
func ConvertParity ¶
ConvertParity : converts parity from a custom numeric id to the string ids used by relying module
func SetupHandler ¶
func SetupHandler(config SerialConfig) *modbus.RTUClientHandler
SetupHandler : creates and returns a handler to use to read device information
Types ¶
type SerialConfig ¶
SerialConfig : struct object to store serial configuration
func SetupConfig ¶
func SetupConfig(address string, baudRate int, dataBits int, stopBits int, parity string, timeout int64) SerialConfig
SetupConfig : creates and returns an object with the given configuration
func TypicalConfig ¶
func TypicalConfig() SerialConfig
TypicalConfig : creates and returns a typical configuration object
Click to show internal directories.
Click to hide internal directories.