nxtlib/src/Connect/USB.cs
/// <summary> 
/// Recieves the reply from the NXT.
/// </summary>
/// <returns>Returns the reply from the NXT, as a byte array.</returns>
Recieves the reply from the NXT.
Recieves the reply from the NXT .
public override byte[] RecieveReply()
        {
            if (!IsConnected) { throw new NXTNotConnected(); }
            lock (commLock)
            {
                byte[] reply = usb.ReadDataViaBulkTransfer();
                if (reply == null) { throw new NXTNoReply(); }
                return reply;
            }
        }
public override byte [ ] RecieveReply ( ) { if ( ! IsConnected ) { throw new NXTNotConnected ( ) ; } lock ( commLock ) { byte [ ] reply = usb . ReadDataViaBulkTransfer ( ) ; if ( reply == null ) { throw new NXTNoReply ( ) ; } return reply ; } }
Recieves the reply from the NXT.
Recieves the reply from the NXT .
Returns the reply from the NXT, as a byte array.
Returns the reply from the NXT as a byte array .