device

package
v3.2.59 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 5 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 {
	BaseClient *kernel.BaseClient
}

func RegisterProvider

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

func (*Client) Bind

func (comp *Client) Bind(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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(ctx context.Context, 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