Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultAddress = ":8000" DefaultBaudRate = 19200 DefaultDataBits = 8 DefaultStopBits = 1 DefaultParity = "N" DefaultTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Serial ¶
type Serial struct { Path string `json:"path,omitempty" yaml:"path,omitempty"` BaudRate int `json:"baudRate,omitempty" yaml:"baudRate,omitempty"` DataBits int `json:"dataBits,omitempty" yaml:"dataBits,omitempty"` StopBits int `json:"stopBits,omitempty" yaml:"stopBits,omitempty"` Parity string `json:"parity,omitempty" yaml:"parity,omitempty"` Timeout time.Duration `json:"timeout,omitempty" yaml:"timeout,omitempty"` }
Click to show internal directories.
Click to hide internal directories.