serialport

package
v0.0.0-...-a1f36d2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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