serial

package
v0.0.0-...-1f94d21 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Serial

type Serial struct {
	SerialConfig *serial.Config
	Connection   *serial.Port
	Established  bool
	Quit         chan int
	Command      chan string
	Message      chan string
}

Serial holds the serial connection information

func New

func New(cmd chan string) *Serial

New will return an instantiated Serial object

func (*Serial) Reload

func (s *Serial) Reload()

Reload will terminate the serial loop

func (*Serial) Start

func (s *Serial) Start() error

Start will start the serial loop

func (*Serial) Write

func (s *Serial) Write(input string)

Write will write to the serial connection

Jump to

Keyboard shortcuts

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