response

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceInfo

type DeviceInfo struct {
	DeviceName   string `json:"DeviceName"`   // 设备名称
	DeviceSecret string `json:"DeviceSecret"` // 设备密钥
	IotId        string `json:"IotId"`        // 物联网平台为该设备颁发的设备 ID,作为该设备的唯一标识
	Nickname     string `json:"Nickname"`     // 备注名称
	ProductKey   string `json:"ProductKey"`   // 设备所属的产品标识

}

func DeviceInfoFrom

func DeviceInfoFrom(data iot.Data) (*DeviceInfo, error)

type DeviceList

type DeviceList struct {
	NextToken string           `json:"NextToken,omitempty"`
	Page      int              `json:"Page"`
	PageCount int              `json:"PageCount"`
	PageSize  int              `json:"PageSize"`
	List      []iot.DeviceInfo `json:"List"`
}

func FromQueryDeviceResponse

func FromQueryDeviceResponse(res *iot.QueryDeviceResponse) (*DeviceList, error)

Jump to

Keyboard shortcuts

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