|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlejos.pc.tools.ConsoleViewComms
public class ConsoleViewComms
Contains the logic for connecting to RConsole on the NXT and downloading data. Can be used by different user interfaces.
Constructor Summary | |
---|---|
ConsoleViewComms(ConsoleViewerUI viewer,
boolean daemon,
boolean lcd)
|
Method Summary | |
---|---|
void |
close()
Close the connection |
boolean |
connectTo(String name,
String address,
boolean useUSB)
Connect to RConsole on the NXT uusing either USB or Bluetooth |
boolean |
connectTo(String name,
String address,
int protocol)
Connect to RConsole on the NXT using the specified protocols |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleViewComms(ConsoleViewerUI viewer, boolean daemon, boolean lcd)
Method Detail |
---|
public boolean connectTo(String name, String address, boolean useUSB)
name
- the name of the NXT or nulladdress
- the address of the NXT or nulluseUSB
- use USB if true, else use Bluetooth
public boolean connectTo(String name, String address, int protocol)
name
- the name of the NXT or nulladdress
- the address of the NXT or nullprotocol
- USB or Bluetooth or both
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |