mqtt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Command     string
	DeviceName  string
	DeviceModel string
	Value       string
}

Command to be sent to Yeebulb's.

type Device

type Device struct {
	yeel.Device
	LastUpdated time.Time
	Transition  time.Duration
	// contains filtered or unexported fields
}

Device .

func (*Device) Command

func (d *Device) Command(msg Command) (yeel.Commander, error)

func (*Device) Update

func (d *Device) Update(n yeel.Notification)

func (*Device) Updates

func (t *Device) Updates() []PropUpdate

func (*Device) Value

func (d *Device) Value(prop string) string

type MQTTService

type MQTTService struct {
	MQTTConnectionStr string
	ClientID          string
	MulticastIF       string // which network interface to use for multicast udp

}

MQTTService .

func (*MQTTService) Start

func (m *MQTTService) Start() error

type PropUpdate

type PropUpdate struct {
	DeviceID string
	Prop     string
	Value    []byte
}

PropUpdate field level property updates from yeebulb tcp connections.

func (PropUpdate) String

func (p PropUpdate) String() string

Jump to

Keyboard shortcuts

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