I just started programming my new EV3.
So far all things work great.
But now I was trying to connect to my Laptop via Bluetooth for Interaction.
The connection can be established (via Laptop) but when I try to open a Output or InputStream on the EV3 it always crashes with a NullPointer.
This is my code:
Code: Select all
NXTConnection con = Bluetooth.getNXTCommConnector().waitForConnection(10000, NXTConnection.PACKET);
As I watched into the lejos code, I saw that the waitForConnection() Method always returns a null.
So is there an other method establishing a valid connection?
And also with which class can I communicate with the EV3 from my Laptop?
Thanks for your help.