13 Jul
2013
13 Jul
'13
11:26 a.m.
Hello Guilherme,
if I remember right, you'll just need to call the toString() method of the endpoint object to get the Endpoint ID as String.
neighbours.get(0).endpoint.toString()
Kind regards, Johannes Morgenroth
Am 12.07.2013 20:18, schrieb Guilherme Rolim:
Hello Johannes,
I did as you said, however, I didn't find a method to get the endpoint name. For example, i have a list of neighbours called "neighbours" (List<Node> neighbours = mClient.getDTNService().getNeighbors();), I was hoping there would be something like "neighbours.get(0).endpoint.getAddress()" returning a String. What is the proper way of getting this String that contains the address?
Thanks for the help, Guilherme Rolim