| | |
| | | } |
| | | |
| | | private void analysisGrain2(IoMessage message, BaseReqData reqData, String grainStr) { |
| | | |
| | | GatewayDevice device = reqData.getDevice(); |
| | | // 获取完整的粮情包信息 |
| | | String[] attCable = device.getCableRule().split("-"); |
| | |
| | | |
| | | THDto thDto = this.getTH(message); |
| | | if (null != thDto) { |
| | | log.debug("-------THDto--={}", thDto); |
| | | log.info("-------THDto--={}", thDto); |
| | | } |
| | | //清空 |
| | | String key = "GRAIN_" + message.getAddr(); |
| | |
| | | try { |
| | | THDto th = new THDto(); |
| | | String data = message.getContent(); |
| | | String houseNo = data.substring(0, 4); |
| | | int depotId = BytesUtil.hexToInt(BytesUtil.tran_LH(houseNo)); |
| | | String houseNo = data.substring(0, 2); |
| | | int depotId = BytesUtil.hexToInt(houseNo); |
| | | String t = data.substring(4, 8); |
| | | String h = data.substring(8, 12); |
| | | double humy; |