Documentation ¶
Overview ¶
Package serialport implements serial port capabilities
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SerialPort ¶
type SerialPort struct {
// contains filtered or unexported fields
}
func NewSerialPort ¶
func NewSerialPort(log log.T) (sp *SerialPort)
NewSerialPort creates a serial port object with predefined parameters.
func (*SerialPort) ClosePort ¶
func (sp *SerialPort) ClosePort()
ClosePort closes the serial port, which MUST be done at the end.
func (*SerialPort) OpenPort ¶
func (sp *SerialPort) OpenPort() (err error)
OpenPort opens the serial port which MUST be done before WritePort is called.
func (*SerialPort) WritePort ¶
func (sp *SerialPort) WritePort(message string)
WritePort writes messages to serial port, which is then picked up by ICD in EC2 droplet and sent to system log in console.
Click to show internal directories.
Click to hide internal directories.