예제 #1
0
        internal async Task <string> GetFirmwareVersionAsyncInternal()
        {
            Command c = new Command(CommandType.DirectReply, 0x10, 0);

            c.GetFirwmareVersion(0x10, 0);
            await _brick.SendCommandAsyncInternal(c);

            if (c.Response.Data == null)
            {
                return(null);
            }

            int index = Array.IndexOf(c.Response.Data, (byte)0);

            return(Encoding.UTF8.GetString(c.Response.Data, 0, index));
        }
예제 #2
0
		internal async Task<string> GetFirmwareVersionAsyncInternal()
		{
			Command c = new Command(CommandType.DirectReply, 0x10, 0);
			c.GetFirwmareVersion(0x10, 0);
			await _brick.SendCommandAsyncInternal(c);
			if(c.Response.Data == null)
				return null;

			int index = Array.IndexOf(c.Response.Data, (byte)0);
			return Encoding.UTF8.GetString(c.Response.Data, 0, index);
		}