| | |
| | | |
| | | private String port; |
| | | |
| | | private String username; |
| | | private String login; |
| | | |
| | | private String password; |
| | | |
| | |
| | | return "{" + |
| | | "host:'" + host + '\'' + |
| | | ", port:'" + port + '\'' + |
| | | ", username:'" + username + '\'' + |
| | | ", login:'" + login + '\'' + |
| | | ", password:'" + password + '\'' + |
| | | ", qos:" + qos + |
| | | ", topic:'" + topic + '\'' + |
| | |
| | | this.msg = "登录成功"; |
| | | this.dev_sno = faceDevice.getDevSno(); |
| | | this.mqinfo = JSON.parseObject(emqxConfig); |
| | | this.mqinfo.put("keepalive",60); |
| | | this.mqinfo.put("topic",faceDevice.getDevSno()); |
| | | this.mqinfo.put("willTopic",faceDevice.getDevSno()+"-W"); |
| | | this.mqinfo.put("willContent",faceDevice.getDevSno()+"-offline"); |