nxtlib/src/Protocol.cs
/// <summary> 
/// [Native] Get the firware and protocol versions of the NXT.
/// </summary>
/// <returns>Returns the reply as a nullable GetFirmwareVersionReply.</returns>
[Native] Get the firware and protocol versions of the NXT.
[ Native ] Get the firware and protocol versions of the NXT .
public GetFirmwareVersionReply GetFirmwareVersion()
        {
            byte[] request = new byte[] {
            0x01,
            (byte) MessageCommand.GetFirmwareVersion
            };
            byte[] reply = CompleteRequest(request);
            GetFirmwareVersionReply result;
            result.protocolVersion = new Version(reply[4], reply[3]);
            result.firmwareVersion = new Version(reply[6], reply[5]);
            return result;
        }
public GetFirmwareVersionReply GetFirmwareVersion ( ) { byte [ ] request = new byte [ ] { 0x01 , ( byte ) MessageCommand . GetFirmwareVersion } ; byte [ ] reply = CompleteRequest ( request ) ; GetFirmwareVersionReply result ; result . protocolVersion = new Version ( reply [ 4 ] , reply [ 3 ] ) ; result . firmwareVersion = new Version ( reply [ 6 ] , reply [ 5 ] ) ; return result ; }
[Native] Get the firware and protocol versions of the NXT.
[ Native ] Get the firware and protocol versions of the NXT .
Returns the reply as a nullable GetFirmwareVersionReply.
Returns the reply as a nullable GetFirmwareVersionReply .