|
|||||||||
| 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,
ConsoleDebug debug,
boolean daemon)
|
|
| Method Summary | |
|---|---|
void |
close()
Close the connection |
boolean |
connectTo(java.lang.String name,
java.lang.String address,
boolean useUSB,
boolean lcd)
Connect to RConsole on the NXT uusing either USB or Bluetooth |
boolean |
connectTo(java.lang.String name,
java.lang.String address,
int protocol,
boolean lcd)
Connect to RConsole on the NXT using the specified protocols |
void |
waitComplete()
Wait for the console session to end |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConsoleViewComms(ConsoleViewerUI viewer,
ConsoleDebug debug,
boolean daemon)
| Method Detail |
|---|
public boolean connectTo(java.lang.String name,
java.lang.String address,
boolean useUSB,
boolean lcd)
name - the name of the NXT or nulladdress - the address of the NXT or nulluseUSB - use USB if true, else use Bluetoothlcd - Request NXT LCD display contents
public boolean connectTo(java.lang.String name,
java.lang.String address,
int protocol,
boolean lcd)
name - the name of the NXT or nulladdress - the address of the NXT or nullprotocol - USB or Bluetooth or bothlcd - Request NXT LCD display contents
public void close()
public void waitComplete()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||