beehive: github.com/muesli/beehive/bees/serialbee Index | Files

package serialbee

import "github.com/muesli/beehive/bees/serialbee"

Package serialbee is a Bee that can send & receive data on a serial port.

Index

Package Files

serialbee.go serialbeefactory.go

type SerialBee Uses

type SerialBee struct {
    bees.Bee
    // contains filtered or unexported fields
}

SerialBee is a Bee that can send & receive data on a serial port.

func (*SerialBee) Action Uses

func (mod *SerialBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*SerialBee) ReloadOptions Uses

func (mod *SerialBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*SerialBee) Run Uses

func (mod *SerialBee) Run(eventChan chan bees.Event)

Run executes the Bee's event loop.

type SerialBeeFactory Uses

type SerialBeeFactory struct {
    bees.BeeFactory
}

SerialBeeFactory is a factory for SerialBees.

func (*SerialBeeFactory) Actions Uses

func (factory *SerialBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*SerialBeeFactory) Description Uses

func (factory *SerialBeeFactory) Description() string

Description returns the description of this Bee.

func (*SerialBeeFactory) Events Uses

func (factory *SerialBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*SerialBeeFactory) ID Uses

func (factory *SerialBeeFactory) ID() string

ID returns the ID of this Bee.

func (*SerialBeeFactory) Image Uses

func (factory *SerialBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*SerialBeeFactory) LogoColor Uses

func (factory *SerialBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*SerialBeeFactory) Name Uses

func (factory *SerialBeeFactory) Name() string

Name returns the name of this Bee.

func (*SerialBeeFactory) New Uses

func (factory *SerialBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*SerialBeeFactory) Options Uses

func (factory *SerialBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

Package serialbee imports 5 packages (graph) and is imported by 14 packages. Updated 2019-04-28. Refresh now. Tools for package owners.