devices

package
v0.0.0-...-d9b082c Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceReceive

type DeviceReceive struct {
	ID              string `json:"id"`
	Key             string `json:"key"`
	Notify          bool   `json:"notify"`
	SmokerRead      *SmokerRead
	TemperatureRead *TemperatureRead
}

type DeviceSend

type DeviceSend struct {
	ID     string      `json:"id"`
	Device interface{} `json:"device"`
}

type SmokerRead

type SmokerRead struct {
	Thresh  int     `json:"thresh"`
	Reading float64 `json:"reading"`
}

SmokerRead ... This struct is the next level device for a Smoker. It possesses a threshole and a current reading.

type SmokerWrite

type SmokerWrite struct {
	Thresh  int    `json:"thresh"`
	RunTime string `json:"runtime"`
}

SmokerWrite ... This struct sends a command to the Smoker.Device

type TemperatureRead

type TemperatureRead struct {
	Reading float32 `json:"reading"`
}

TemperatureRead ... Handles marshalling of temperature reading

Jump to

Keyboard shortcuts

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