Command

The Command UObject is not a device. It makes it possible to send direct commands as you do with the NXT SDK. You will find more informations on http://mindstorms.lego.com/Overview/NXTreme.asp

This object has methods to send and receive data to the NXT :

  Command.send(myBuff) ;

where :

For example :

  Command.send([3, 10, 10, 0 , 0]);

will play a beep.

  answer = Command.request(myBuff, size) ;

where :

This command is designed for expert users. Using it is not recommanded if you don't know what you are doing and might result in server crashes.

Here is an example:

  answer = Command.request([7,0], 15); 

that returns the informations on input port 1.