device

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

* TODO: This file is to control the devices. Please refine the configurations and * reading/writing functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevInit

func DevInit(configmapPath string) error

DevInit initialize the device datas.

func DevStart

func DevStart()

DevStart start all devices.

Types

type GetStatus

type GetStatus struct {
	Client *driver.TemplateClient
	Status string
	// contains filtered or unexported fields
}

GetStatus is the timer structure for getting device status.

func (*GetStatus) Run

func (gs *GetStatus) Run()

Run timer function.

type TwinData

type TwinData struct {
	Client *driver.TemplateClient
	Name   string
	Type   string
	// TODO: add visiting parameters like register address, visiting count.
	Results []byte
	Topic   string
}

TwinData is the timer structure for getting twin/data.

func (*TwinData) Run

func (td *TwinData) Run()

Run timer function.

Jump to

Keyboard shortcuts

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