Example #1
0
        internal async Task DeleteFileAsyncInternal(string devicePath)
        {
            Response r = ResponseManager.CreateResponse();
            Command  c = new Command(CommandType.SystemReply);

            c.DeleteFile(devicePath);
            await _brick.SendCommandAsyncInternal(c);

            if (r.SystemReplyStatus != SystemReplyStatus.Success)
            {
                throw new Exception("Error deleting file: " + r.SystemReplyStatus);
            }
        }
Example #2
0
		internal async Task DeleteFileAsyncInternal(string devicePath)
		{
			Response r = ResponseManager.CreateResponse();
			Command c = new Command(CommandType.SystemReply);
			c.DeleteFile(devicePath);
			await _brick.SendCommandAsyncInternal(c);
			if(r.SystemReplyStatus != SystemReplyStatus.Success)
				throw new Exception("Error deleting file: " + r.SystemReplyStatus);
		}