rest_api

package
v0.0.0-...-d34fc3c Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Description = "" /* 151-byte string literal not displayed */
View Source
var Model = resource.NewModel("bill", "advantech-wise-4050", "restapi")
View Source
var PrettyName = "WISE-4050 4DI/4DO 2.4G WiFi IoT Wireless I/O Module"

Functions

func NewSensor

func NewSensor(ctx context.Context, deps resource.Dependencies, conf resource.Config, logger logging.Logger) (sensor.Sensor, error)

func RunRESTAPI

func RunRESTAPI()

Types

type CloudConfig

type CloudConfig struct {
	DeviceIP string `json:"device_ip"`
	Username string `json:"username"`
	Password string `json:"password"`
}

func (*CloudConfig) Validate

func (conf *CloudConfig) Validate(path string) ([]string, error)

Jump to

Keyboard shortcuts

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