Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USER: 0xbb492894B403BF08e9181e42B07f76814b10FEdc
- IP: 10.0.2.6
- NETMASK: 255.255.0.0
- SUPERNODE: tlcsupernode.ddns.net
- PORT: 5000
- COMMUNITY: tlcnet
- PSK: mysecret
- MAC: 00:02:ff:00:02:06
- Map<String, String> map = new HashMap<String, String>();
- String[] parts = response.trim().split(":", 0);
- for (int i = 0; i < parts.length; i += 2) {
- map.put(parts[i], parts[i + 1]);
- }
- for (String s : map.keySet()) {
- System.out.println(s + " is " + map.get(s));
- Log.d("Testing", " "+s + " is " + map.get(s));
- }
- String[] parts = response.trim().split(":", 0);
- String[] parts = response.trim().split(":", 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement