deviceinteractlogic

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2024 License: AGPL-3.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Auth

func Auth(ctx context.Context, svcCtx *svc.ServiceContext, dev devices.Core, param map[string]any) (outParam map[string]any, err error)

func CheckIsOnline

func CheckIsOnline(ctx context.Context, svcCtx *svc.ServiceContext, core devices.Core) (protocolCode string, err error)

func ToSendOptionDo

func ToSendOptionDo(in *dm.SendOption) *serverDo.SendOption

Types

type ActionReadLogic

type ActionReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewActionReadLogic

func NewActionReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionReadLogic

func (*ActionReadLogic) ActionRead

func (l *ActionReadLogic) ActionRead(in *dm.RespReadReq) (*dm.ActionSendResp, error)

获取异步调用设备行为的结果

type ActionRespLogic

type ActionRespLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewActionRespLogic

func NewActionRespLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionRespLogic

func (*ActionRespLogic) ActionResp

func (l *ActionRespLogic) ActionResp(in *dm.ActionRespReq) (*dm.Empty, error)

回复调用设备行为

type ActionSendLogic

type ActionSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewActionSendLogic

func NewActionSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *ActionSendLogic

func (*ActionSendLogic) ActionSend

func (l *ActionSendLogic) ActionSend(in *dm.ActionSendReq) (ret *dm.ActionSendResp, err error)

调用设备行为

type GatewayGetFoundSendLogic

type GatewayGetFoundSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGatewayGetFoundSendLogic

func NewGatewayGetFoundSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GatewayGetFoundSendLogic

func (*GatewayGetFoundSendLogic) GatewayGetFoundSend

func (l *GatewayGetFoundSendLogic) GatewayGetFoundSend(in *dm.GatewayGetFoundReq) (*dm.Empty, error)

实时获取网关拓扑关系

type GatewayNotifyBindSendLogic

type GatewayNotifyBindSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewGatewayNotifyBindSendLogic

func NewGatewayNotifyBindSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GatewayNotifyBindSendLogic

func (*GatewayNotifyBindSendLogic) GatewayNotifyBindSend

func (l *GatewayNotifyBindSendLogic) GatewayNotifyBindSend(in *dm.GatewayNotifyBindSendReq) (*dm.Empty, error)

通知网关绑定子设备

type PropertyControlMultiSendLogic

type PropertyControlMultiSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPropertyControlMultiSendLogic

func NewPropertyControlMultiSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlMultiSendLogic

func (*PropertyControlMultiSendLogic) MultiSendMultiProductProperty

func (l *PropertyControlMultiSendLogic) MultiSendMultiProductProperty(in *dm.PropertyControlMultiSendReq) ([]*dm.PropertyControlSendMsg, error)

func (*PropertyControlMultiSendLogic) MultiSendOneProductProperty

func (*PropertyControlMultiSendLogic) PropertyControlMultiSend

批量调用设备属性

type PropertyControlReadLogic

type PropertyControlReadLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPropertyControlReadLogic

func NewPropertyControlReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlReadLogic

func (*PropertyControlReadLogic) PropertyControlRead

func (l *PropertyControlReadLogic) PropertyControlRead(in *dm.RespReadReq) (*dm.PropertyControlSendResp, error)

获取异步调用设备属性的结果

type PropertyControlSendLogic

type PropertyControlSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPropertyControlSendLogic

func NewPropertyControlSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyControlSendLogic

func (*PropertyControlSendLogic) PropertyControlSend

func (l *PropertyControlSendLogic) PropertyControlSend(in *dm.PropertyControlSendReq) (ret *dm.PropertyControlSendResp, err error)

调用设备属性

type PropertyGetReportSendLogic

type PropertyGetReportSendLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewPropertyGetReportSendLogic

func NewPropertyGetReportSendLogic(ctx context.Context, svcCtx *svc.ServiceContext) *PropertyGetReportSendLogic

func (*PropertyGetReportSendLogic) PropertyGetReportSend

func (l *PropertyGetReportSendLogic) PropertyGetReportSend(in *dm.PropertyGetReportSendReq) (ret *dm.PropertyGetReportSendResp, err error)

请求设备获取设备最新属性

type SendMsgLogic

type SendMsgLogic struct {
	logx.Logger
	// contains filtered or unexported fields
}

func NewSendMsgLogic

func NewSendMsgLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SendMsgLogic

func (*SendMsgLogic) SendMsg

func (l *SendMsgLogic) SendMsg(in *dm.SendMsgReq) (ret *dm.SendMsgResp, err error)

发送消息给设备

Jump to

Keyboard shortcuts

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