device

package
v0.0.0-...-db03bfd Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package device implements the dlibox device.

When running as a device, it connects to the MQTT server to listen to commands from the controller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(server string, bus msgbus.Bus, port int) error

Main is the main function when running as a device (a node).

Types

type NodeBase

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

NodeBase is the base type for all kind of supported nodes.

func (*NodeBase) Close

func (n *NodeBase) Close() error

Close is the default implementation that does nothing.

func (*NodeBase) String

func (n *NodeBase) String() string

Jump to

Keyboard shortcuts

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