Esempio n. 1
0
        private static int GetPendingFotaRevision(IFoteable Device)
        {
            var line = Fota.FindLast(Device, ">SSDG1,W0000008004", true) ?? ">SSDG1,W000000800400000000<";

            line = line.Substring(line.IndexOf("04") + 2).TrimEnd('<');
            var bytes = StringUtils.HexStringToByteList(line, 0).ToArray();
            var value = BitConverter.ToInt32(bytes, 0);

            return(value);
        }