watcher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeviceConnected = make(chan bool)

Functions

This section is empty.

Types

type Attribute

type Attribute struct {
	Name    string   `yaml:"device-property-name" json:"device-property-name"`
	Actions []string `yaml:"actions" json:"actions"`
}

Attribute structure contains the name of the attribute along with the actions to be performed for this attribute

type Watcher

type Watcher struct {
	DeviceTwinAttributes []Attribute `yaml:"device-twin-attributes" json:"device-twin-attributes"`
}

Watch structure contains the watcher specific configurations

func (*Watcher) EquateTwinValue

func (w *Watcher) EquateTwinValue(deviceID string) error

EquateTwinValue is responsible for equating the actual state of the device to the expected state that has been set and syncing back the result to the cloud

func (*Watcher) Initiate

func (w *Watcher) Initiate(device gatt.Device, nameOfDevice, idOfDevice string, actions []actionmanager.Action, converter dataconverter.Converter)

Initiate initiates the watcher module

Jump to

Keyboard shortcuts

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