manager

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager 阿里云 IoT 平台管理器

func NewManager

func NewManager(regionId, instanceId, accessKeyId, accessKeySecret string) (*Manager, error)

NewManager 创建阿里云 IoT 平台管理器实例

func (*Manager) BatchGetDeviceState

func (m *Manager) BatchGetDeviceState(opts *options.BatchDeviceStateOptions) (*[]iot.DeviceStatus, error)

BatchGetDeviceState 批量获取设备状态

func (*Manager) BatchUpdateDeviceNickname added in v1.1.0

func (m *Manager) BatchUpdateDeviceNickname(opts *options.BatchUpdateDeviceNicknameOptions) error

BatchUpdateDeviceNickname 批量修改设备备注名称

func (*Manager) DeleteDevice

func (m *Manager) DeleteDevice(opts *options.QueryDeviceOptions) error

DeleteDevice 删除设备

func (*Manager) DeviceList

func (m *Manager) DeviceList(opts *options.DeviceListOptions) (*response.DeviceList, error)

DeviceList 查询设备列表

func (*Manager) DisableThing

func (m *Manager) DisableThing(opts *options.QueryDeviceOptions) error

DisableThing 禁用设备

func (*Manager) EnableThing

func (m *Manager) EnableThing(opts *options.QueryDeviceOptions) error

EnableThing 解除设备禁用状态

func (*Manager) ProductList

ProductList 查询产品列表

func (*Manager) QueryDeviceDetail

func (m *Manager) QueryDeviceDetail(opts *options.QueryDeviceOptions) (*iot.DataInQueryDeviceDetail, error)

QueryDeviceDetail 查询设备详细信息

func (*Manager) QueryDeviceInfo

func (m *Manager) QueryDeviceInfo(opts *options.QueryDeviceOptions) (*response.DeviceInfo, error)

QueryDeviceInfo 查询设备基本信息

func (*Manager) QueryProduct

func (m *Manager) QueryProduct(productKey string) (*iot.DataInQueryProduct, error)

QueryProduct 查询产品详情

func (*Manager) RegisterDevice

func (m *Manager) RegisterDevice(opts *options.RegisterDeviceOptions) (*response.DeviceInfo, error)

RegisterDevice 注册设备

Jump to

Keyboard shortcuts

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