| | |
| | | return "ERROR:当前设备没有配置布线规则,无法执行"; |
| | | } |
| | | |
| | | BaseResp resp = gatewayRemoteManager.getSyncGrainService(data.getSyncProtocol()).syncGrain2(reqData); |
| | | BaseResp resp = gatewayRemoteManager.getSyncGrainService(data.getSyncProtocol()).syncGrain(reqData); |
| | | |
| | | //自动推送 |
| | | if (200 == resp.getCode() && reqData.isAutoReplay()) { |
| | |
| | | |
| | | |
| | | if (null == deviceReportService) { |
| | | deviceReportService = gatewayRemoteManager.getDeviceReportService(device.getProvinceProtocol()); |
| | | deviceReportService = gatewayRemoteManager.getDeviceReportService(device.getPushProtocol()); |
| | | } |
| | | |
| | | |
| | | deviceReportService.pushGrainData2Cloud(pushData); |
| | | // deviceReportService.pushGrainData2Cloud(pushData); |
| | | |
| | | } |
| | | |
| | |
| | | @Expose |
| | | public String ajaxTestWeight(Map<String,Object> data) throws Exception { |
| | | double weigh = (double) data.get("weight"); |
| | | double deviceId = (double) data.get("deviceId"); |
| | | |
| | | |
| | | List<GatewayDevice> devices = listAll(); |
| | |
| | | log.info("-----------test-------------------"); |
| | | return "SUCCESS"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * |
| | | * gatewayDeviceTestPR#testIde |
| | | * 测试下行分机 |
| | | * @param data |
| | | * @return |
| | | */ |
| | | @Expose |
| | | public String testIde(Map<String,Object> data) throws Exception { |
| | | String deviceId = (String) data.get("deviceId"); |
| | | String bizType = (String) data.get("bizType"); |
| | | |
| | | log.info("-----------下行分机调试-设备={},事件={}",deviceId,bizType); |
| | | |
| | | return "SUCCESS"; |
| | | } |
| | | |
| | | } |