serial

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package serial contains utilities for MyrtIO API through serial connection

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Discover added in v0.1.2

func Discover() ([]string, error)

Discover finds known serial devices

Types

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

Transport represents MyrtIO serial transport

func New

func New(path string, baudRate int) (*Transport, error)

New creates new serial transport

func (*Transport) Close

func (t *Transport) Close() error

Close connection with device

func (*Transport) RunAction

func (t *Transport) RunAction(message *myrtio.Message) (*myrtio.Message, error)

RunAction sends command to device and return response

Jump to

Keyboard shortcuts

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