Documentation
¶
Index ¶
- Constants
- func CreatePort(channel string, mode goSerial.Mode) (io.ReadWriteCloser, error)
- func CreateReadWriter(portName string, mode goSerial.Mode) (io.ReadWriteCloser, error)
- func GetSerialPorts() []string
- func OpenSerialConnection(com string, mode goSerial.Mode) (goSerial.Port, error)
- func SerialList()
- func StartSerial(com string, baud uint, parity string, dataLen uint, stopBits bool)
- type CustomPort
Constants ¶
View Source
const (
POLLING_DELAY_MS = "100"
)
Variables ¶
This section is empty.
Functions ¶
func CreatePort ¶
func CreateReadWriter ¶
func GetSerialPorts ¶
func GetSerialPorts() []string
func OpenSerialConnection ¶
func SerialList ¶
func SerialList()
Types ¶
type CustomPort ¶
Wraps the goSerial.Port because its Read() function does not return EOF on timeout. This causes problems with io.Copy when this is used as a reader, since no error is returned it will hang. https://github.com/bugst/go-serial/issues/141
func NewCustomPort ¶
func NewCustomPort(port goSerial.Port) CustomPort
Click to show internal directories.
Click to hide internal directories.