serialport

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 6 Imported by: 2

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)

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