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 ¶
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
Click to show internal directories.
Click to hide internal directories.