device

package
v2.0.2-beta05 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*kernel.BaseClient
}

func RegisterProvider

func RegisterProvider(app kernel.ApplicationInterface) (*Client, error)

func (*Client) Bind

func (comp *Client) Bind(openID string, deviceID string, ticket string) (*response.ResponseDeviceBind, error)

设备绑定 https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7

func (*Client) ForceBind

func (comp *Client) ForceBind(openID string, deviceID string) (*response.ResponseDeviceBind, error)

设备绑定 https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7

func (*Client) ForceUnbind

func (comp *Client) ForceUnbind(openID string, deviceID string) (*response.ResponseDeviceBind, error)

设备解绑 https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7

func (*Client) QRCode

func (comp *Client) QRCode(deviceIDs []string) (*response.ResponseDeviceCreateQRCode, error)

获取设备二维码 https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-4

func (*Client) Unbind

func (comp *Client) Unbind(openID string, deviceID string, ticket string) (*response.ResponseDeviceBind, error)

设备解绑 https://iot.weixin.qq.com/wiki/new/index.html?page=3-4-7

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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