0.8.1 [WIFI] How to detect other Bricks in the same Network?

This is where you talk about the EV3 software itself, installation issues, and programming talk.

Moderators: roger, gloomyandy, skoehler

0.8.1 [WIFI] How to detect other Bricks in the same Network?

Postby esmetaman » Sun May 04, 2014 12:07 am

Hi,

I would like to know if exist some way to detect a Brick running in the same network to know the IP.

Cheers

Juan Antonio
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
https://github.com/jabrena/livingrobots
http://www.iloveneutrinos.com/
User avatar
esmetaman
Advanced Member
 
Posts: 311
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain

Re: 0.8.1 [WIFI] How to detect other Bricks in the same Netw

Postby Aswin » Sun May 04, 2014 9:18 am

Use the BrickFinder class.

Aswin
My NXT blog: http://nxttime.wordpress.com/
Aswin
leJOS Team Member
 
Posts: 207
Joined: Tue Apr 26, 2011 9:18 pm
Location: Netherlands

Re: 0.8.1 [WIFI] How to detect other Bricks in the same Netw

Postby esmetaman » Sun May 04, 2014 2:19 pm

Many thanks for the info.

Code: Select all
      BrickInfo[] bi;
      BrickFinder bf = new BrickFinder();
      bi = bf.discover();

      for (BrickInfo brick : bi) {
//Some stuff
      }


Cheers
Juan Antonio Breña Moral
http://www.juanantonio.info/lejos-ebook/
https://github.com/jabrena/livingrobots
http://www.iloveneutrinos.com/
User avatar
esmetaman
Advanced Member
 
Posts: 311
Joined: Wed Sep 13, 2006 12:16 am
Location: Madrid, Spain


Return to EV3 Software

Who is online

Users browsing this forum: lpn and 1 guest

more stuff