linkwan

package
v0.0.0-...-91c7ab2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SecretKey = "klec-iot-hub"
)

Variables

This section is empty.

Functions

func GetHmacMd5HexString

func GetHmacMd5HexString(deviceName string) string

Types

type AddDeviceReq

type AddDeviceReq struct {
	DeviceName string `json:"device_name"` // 阿里云唯一名称
	DevName    string `json:"dev_name"`    // 设备名称
	Location   string `json:"location"`    // 安装位置
	DevCateg   string `json:"dev_categ"`   // 设备分类
	Secret     string `json:"secret"`      // 密钥
}

type ComResponse

type ComResponse struct {
	Success bool   `json:"success"`
	Msg     string `json:"msg"`
}

type LinkWan

type LinkWan struct {
	// contains filtered or unexported fields
}

func NewLinkwan

func NewLinkwan(addr string) *LinkWan

func (*LinkWan) AddDevice

func (l *LinkWan) AddDevice(devCateg, deviceName, devName, location string) error

func (*LinkWan) DelDevice

func (l *LinkWan) DelDevice(deviceName string) error

Jump to

Keyboard shortcuts

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