AForge.Robotics.Surveyor.SRV1.GetVersion C# (CSharp) Method

GetVersion() public method

Get SRV-1 firmware version string.
Not connected to SRV-1. Connect to SRV-1 before using /// this method. Connection lost or communicaton failure. Try to reconnect.
public GetVersion ( ) : string
return string
        public string GetVersion( )
        {
            byte[] response = new byte[100];

            int read = SendAndReceive( new byte[] { (byte) 'V' }, response );

            string str = System.Text.ASCIIEncoding.ASCII.GetString( response, 0, read );

            str = str.Replace( "##Version -", "" );
            str = str.Trim( );

            return str;
        }