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)
Click to show internal directories.
Click to hide internal directories.