gobrailcreator

package
v0.0.0-...-afa3a06 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Stop

func Stop() (err error)

Stop stops the gobot robot, when available

Types

type AdaptorType

type AdaptorType uint8

AdaptorType represents the supported adaptors

func ParseAdaptorType

func ParseAdaptorType(adaptorString string) (a AdaptorType, err error)

ParseAdaptorType try get adaptor type from string

func (AdaptorType) String

func (a AdaptorType) String() string

type RailRunner

type RailRunner interface {
	Run() (err error)
}

RailRunner is an interface to poll the rail

func Create

func Create(daemonMode bool, name string, adaptorType AdaptorType, planFile string, recipeFiles RecipeFiles) (runner RailRunner, err error)

Create will create a static device connection for run before creating, the old gobot robot will be stopped after creating the devices, a new gobot robot will be created and started

type RecipeFiles

type RecipeFiles struct {
	Boards  []string
	Devices []string
}

RecipeFiles contains additional files to add to menu card

Jump to

Keyboard shortcuts

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