| | |
| | | package com.sandu.ximon.admin.manager.iot.rrpc.topic; |
| | | |
| | | import com.aliyuncs.iot.model.v20180120.InvokeThingServiceResponse; |
| | | import com.sandu.ximon.admin.manager.iot.frame.IRequestFrame; |
| | | import com.sandu.ximon.admin.manager.iot.frame.inner.BaseResponseInnerFrame; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.dto.CommonFrame; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.dto.InvokeParam; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.dto.WrapResponseCommonFrame; |
| | | |
| | | /** |
| | | * @author chenjiantian |
| | |
| | | public interface ICustomizeTopic { |
| | | |
| | | /** |
| | | * 调用自定义topic |
| | | * https://help.aliyun.com/document_detail/69584.htm?spm=a2c4g.11186623.0.0.25b33982bSQSom#reference-snk-mrz-wdb |
| | | * @param deviceName 设备名 |
| | | * @param param 参数 |
| | | * @return 设备返回的结果 |
| | | * 获取产品吗 |
| | | * |
| | | * @return 产品吗 |
| | | */ |
| | | InvokeThingServiceResponse.Data invokeThing(String deviceName, InvokeParam param); |
| | | String getProductKey(); |
| | | |
| | | /** |
| | | * 发送rrpc 请求 |
| | | * |
| | | * @param deviceName 设备名 |
| | | * @param invokeParam 帧内容 |
| | | * @return 返回的解码帧实体类 |
| | | */ |
| | | CommonFrame sendRRPC(String deviceName, InvokeParam invokeParam); |
| | | |
| | | /** |
| | | * 发送rrpc 请求 |
| | | * |
| | | * @param deviceName 设备名 |
| | | * @param iRequestFrame 编码帧 |
| | | * @return 返回的解码帧实体类 |
| | | */ |
| | | CommonFrame sendRRPC(String deviceName, IRequestFrame iRequestFrame); |
| | | |
| | | /** |
| | | * 发送rrpc 请求 |
| | | * |
| | | * @param deviceName 设备名 |
| | | * @param iRequestFrame 编码帧 |
| | | * @param resendFlag 重发标志 |
| | | * @return 返回的解码帧实体类 |
| | | */ |
| | | CommonFrame sendRRPC(String deviceName, IRequestFrame iRequestFrame, boolean resendFlag); |
| | | |
| | | } |