Пример #1
0
        /// <summary>
        /// Gets the actual brick name
        /// </summary>
        /// <returns></returns>
        public async Task <string> GetBrickName()
        {
            byte[] data = await BrickExplorer.DownloadFile("../sys/settings/BrickName");

            string name = Encoding.ASCII.GetString(data);

            return(name.TrimEnd('\0', '\n'));
        }
Пример #2
0
 /// <summary>
 /// Downloads this file from the Brick and returns this file as byte[]
 /// </summary>
 /// <returns>byte[] data of the file</returns>
 public async Task <byte[]> Download()
 {
     return(await BrickExplorer.DownloadFile(Path));
 }