| | |
| | | ArdSyCarLock ardSyCarLock = lockMapper.selectById(lockTypeParam.getLockId()); |
| | | Integer relay = ardSyCarLock.getRelayInfo(); |
| | | if(relay.equals("1")){ |
| | | AjaxResult.error(0,"该锁处于解封状态,远程无法操控,请先执行施封操作!"); |
| | | return AjaxResult.error(0,"该锁处于解封状态,远程无法操控,请先执行施封操作!"); |
| | | } |
| | | String key = ""; |
| | | String currents = ardSyCarLock.getCurrents(); |
| | |
| | | @Autowired |
| | | private ArdSyCarRtuService ardSyCarRtuService; |
| | | |
| | | @PostConstruct |
| | | // @PostConstruct |
| | | public void init() { |
| | | // ArdSyCarRtuService carRtuService = SpringUtils.getBean(ArdSyCarRtuService.class); |
| | | // //获取电磁锁地址 |
| | |
| | | options.setCleanSession(true); |
| | | options.setUserName("admin"); |
| | | options.setPassword("xzx12345".toCharArray()); |
| | | options.setConnectionTimeout(100); |
| | | options.setKeepAliveInterval(60); |
| | | //options.setConnectionTimeout(100); |
| | | //options.setKeepAliveInterval(60); |
| | | options.setAutomaticReconnect(true); |
| | | MqttCustomerClient.setClient(client); |
| | | MqttCustomerClient.setOptions(options); |