nxtlib/src/Connect/USB.cs
/// <summary>
/// <para>Sends a request to the NXT brick.</para>
/// </summary>
/// <param name="request">The request, as a byte array.</param>
Sends a request to the NXT brick.
Sends a request to the NXT brick .
public override void Send(byte[] request)
        {
            if (!IsConnected) { throw new NXTNotConnected(); }
            lock (commLock)
            {
                usb.SendDataViaBulkTransfers(request);
                return;
            }
        }
public override void Send ( byte [ ] request ) { if ( ! IsConnected ) { throw new NXTNotConnected ( ) ; } lock ( commLock ) { usb . SendDataViaBulkTransfers ( request ) ; return ; } }
Sends a request to the NXT brick.
Sends a request to the NXT brick .
request
byte[]
The request, as a byte array.
The request as a byte array .