| | |
| | | } |
| | | |
| | | @Override |
| | | public CommonFrame sendRRPC(String deviceName, InvokeParam invokeParam) { |
| | | InvokeThingServiceResponse.Data data = invokeThing(deviceName, invokeParam, false); |
| | | if (data == null) { |
| | | return null; |
| | | } |
| | | String result = data.getResult(); |
| | | result = result.replace("\\", ""); |
| | | Map map = JSON.parseObject(result, Map.class); |
| | | result = (String) map.get("msg"); |
| | | return FrameUtils.transformMessageToFrame(result); |
| | | } |
| | | |
| | | @Override |
| | | public CommonFrame sendRRPC(String deviceName, IRequestFrame iRequestFrame) { |
| | | InvokeParam param = new InvokeParam(); |
| | | param.setOperate("1001"); |