receiver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Receiver

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

func NewReceiver

func NewReceiver() (*Receiver, error)

NewReceiver creates a new Receiver struct The mqtt connection is created automatically and must be closed

func (*Receiver) Close

func (r *Receiver) Close()

Close closes the connection

func (*Receiver) IsConnected

func (r *Receiver) IsConnected() bool

func (*Receiver) Start

func (r *Receiver) Start()

Start runs the main loop, basically just waiting to be told to stop

func (*Receiver) Stop

func (r *Receiver) Stop()

Stop kills the main loop

Jump to

Keyboard shortcuts

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