internal static async Task <BrickInfo> GetBrickInfo()
        {
            BrickInfo info = new BrickInfo
            {
                Firmware = new FirmwareInfo
                {
                    Version = await UIReadMethods.GetFirmwareVersion(Brick.Socket),
                    Build   = await UIReadMethods.GetFirmwareBuild(Brick.Socket)
                },


                OS = new OSInfo
                {
                    Version = await UIReadMethods.GetOSVersion(Brick.Socket),
                    Build   = await UIReadMethods.GetOSBuild(Brick.Socket)
                },


                Hardware = new HardwareInfo
                {
                    Version = await UIReadMethods.GetHardwareVersion(Brick.Socket)
                },

                Version = await UIReadMethods.GetVersion(Brick.Socket),
            };

            return(info);
        }
Example #2
0
 /// <summary>
 /// Gets information about the brick: firmware, hardware, OS etc.
 /// </summary>
 /// <returns></returns>
 public async Task <BrickInfo> GetBrickInfo()
 {
     return(await BrickInfo.GetBrickInfo());
 }