proto

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dps

type Dps struct {
	SwitchOn bool `json:"1"`
	Current  int  `json:"18"`
	Power    int  `json:"19"`
	Voltage  int  `json:"20"`
}

type Proto

type Proto interface {
	Status() (*Response, error)
}

func NewClient

func NewClient(ip string, id string, key []byte) Proto

type Req

type Req struct {
	GwId  string `json:"gwId,omitempty"`
	DevId string `json:"devId,omitempty"`
}

type Response

type Response struct {
	Dps Dps `json:"dps"`
}

Jump to

Keyboard shortcuts

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