| | |
| | | import com.fzzy.gateway.entity.GatewayDevice; |
| | | import com.fzzy.gateway.hx2023.ScConstant; |
| | | import com.fzzy.gateway.hx2023.data.*; |
| | | import com.fzzy.protocol.ProtocolUtils; |
| | | import com.fzzy.protocol.fzzy.builder.SimpleCommandBuilder; |
| | | import com.fzzy.protocol.fzzy.cmd.BaseRemoteImpl; |
| | | import com.fzzy.protocol.fzzy.data.ReMessage; |
| | |
| | | private void buildBizInfo1(Response2102 response) { |
| | | |
| | | //获取请求信息 |
| | | BaseReqData reqData = ServerUtils.getSyncReq(response.getHouseId()); |
| | | BaseReqData reqData = ProtocolUtils.getSyncReq(response.getHouseId()); |
| | | |
| | | if (null == reqData) { |
| | | log.error("--粮情封装解析,未获取到请求相关参数----"); |
| | |
| | | } |
| | | |
| | | outPut.setTemperature(temperature); |
| | | List<GrainTH> ths = new ArrayList<>(); |
| | | |
| | | ths.add(new GrainTH(response.getTIn()!=null?response.getTIn()+"":"",response.getHIn()!=null?response.getHIn()+"":"","1")); |
| | | outPut.setTemperatureAndhumidity(ths); |
| | | //grain.setOutput(JSONObject.toJSONString(outPut)); |
| | | grain.setOutput(com.alibaba.fastjson2.JSONObject.toJSONString(outPut)); |
| | | |
| | | |