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 :
myBuff is a valid command buffer (list of integers between 0 and 255).
For example :
Command.send([3, 10, 10, 0 , 0]);
will play a beep.
answer = Command.request(myBuff, size) ;
where :
myBuff is a valid command buffer
(requiering an answer)
size is the size of
the return buffer (it must be the exact size)
answer is a list containing the values of
the return buffer ([ ] is returned when the request failed)
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.