| | |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "{" + |
| | | return "{\"host\":\""+host+"\",\"login\":\""+login+"\",\"password\":\""+password+"\",\"port\":"+port+",\"qos\":1}"; |
| | | /*return "{" + |
| | | "host:'" + host + '\'' + |
| | | ", port:'" + port + '\'' + |
| | | ", login:'" + login + '\'' + |
| | |
| | | ", topic:'" + topic + '\'' + |
| | | ", willTopic:'" + willTopic + '\'' + |
| | | ", willContent:'" + willContent + '\'' + |
| | | '}'; |
| | | '}';*/ |
| | | } |
| | | } |
| | |
| | | emqxConfig.setLogin("thhy"); |
| | | emqxConfig.setPassword("Thhy@123"); |
| | | |
| | | System.out.println(JSON.toJSONString(emqxConfig)); |
| | | System.out.println(emqxConfig.toString()); |
| | | |
| | | List<String> list = new ArrayList<>(); |
| | | list.add("0A:0C:E1:25:75:2C"); |
| | | |