telemetry

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTelemetry

func NewTelemetry() (t2 *Telemetry, t1 ITelemetry)

Types

type ITelemetry added in v0.0.9

type ITelemetry interface {
	Broadcast(pack string)
	BroadcastOne(pack string, deviceId int64, elementName string)
}

type Telemetry

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

func (*Telemetry) Broadcast

func (t *Telemetry) Broadcast(pack string)

func (*Telemetry) BroadcastOne

func (t *Telemetry) BroadcastOne(pack string, deviceId int64, elementName string)

func (*Telemetry) Subscribe added in v0.0.9

func (s *Telemetry) Subscribe(command string, f ITelemetry)

func (*Telemetry) UnSubscribe added in v0.0.9

func (s *Telemetry) UnSubscribe(command string)

Jump to

Keyboard shortcuts

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