serialreactor

package module
v0.0.0-...-42133b7 Latest Latest
Warning

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

Go to latest
Published: May 9, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

README

serialreactor

Event driven interface for serial ports in golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadEvent

type ReadEvent struct{}

type SerialReactor

type SerialReactor struct {
	*eventual2go.Reactor
	// contains filtered or unexported fields
}

func New

func New(port string, baudrate int, maxPacketSize int) (sr *SerialReactor, err error)

func (*SerialReactor) Listen

func (sr *SerialReactor) Listen()

func (*SerialReactor) OnRead

func (sr *SerialReactor) OnRead(handler eventual2go.Subscriber)

Jump to

Keyboard shortcuts

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