I'm trying to connect to NXT, here's my code:
- Code: Select all
import lejos.pc.comm.NXTComm;
import lejos.pc.comm.NXTConnector;
import lejos.nxt.*;
import lejos.nxt.remote.NXTCommand;
import lejos.pc.comm.*;
public class bluetooth {
/**
* @param args
*/
public static void main(String[] args) throws Exception{
// TODO Auto-generated method stub
NXTConnector conn = new NXTConnector();
if(!conn.connectTo("NXT","00:16:53:09:1a:74",NXTComm.LCP)){
System.err.println("Connection failed");
System.exit(1);
}
conn.close();
}
}
i receive ever "Connection Failed"
I use eclipse with plugin for lejos.
i use lejos 9.0.1 and i have a internal device bluetooth.
Is There a problem with api lejos9.0.1?
