Versions in this module Expand all Collapse all v1 v1.2.1 Nov 18, 2019 Changes in this version + const DeviceAdd + const DeviceUpgrade + type Device struct + func NewDevice(context *context.Context) *Device + func (d *Device) Bind(req ReqBind) (err error) + func (d *Device) CompelBind(req ReqBind) (err error) + func (d *Device) CompelUnbind(req ReqBind) (err error) + func (d *Device) CreateQRCode(devices []string) (res ResCreateQRCode, err error) + func (d *Device) DeviceAuthorize(devices []ReqDevice, opType int, product string) (res []ResBaseInfo, err error) + func (d *Device) State(device string) (res ResDeviceState, err error) + func (d *Device) Unbind(req ReqBind) (err error) + func (d *Device) VerifyQRCode(ticket string) (res ResVerifyQRCode, err error) + type MsgDevice struct + DeviceID string + DeviceType string + OpenID string + SessionID string + type ReqBind struct + DeviceID string + OpenID string + Ticket string + type ReqDevice struct + AuthKey string + AuthVer string + BleSimpleProtocol string + CloseStrategy string + ConnStrategy string + ConnectProtocol string + ID string + Mac string + ManuMacPos string + SerMacPost string + type ResBaseInfo struct + BaseInfo struct{ ... } + type ResCreateQRCode struct + CodeList []struct{ ... } + DeviceNum int + type ResDeviceState struct + Status int + StatusInfo string + type ResVerifyQRCode struct + DeviceID string + DeviceType string + Mac string