示例#1
0
 private void parseAndCheckData()
 {
     byte[] data = InReport.GetBlock(DATA_SIZE);
     if (!Utilities.CompareArrays(data, FWIterator.Current.Data))
     {
         throw new Exception("Failed to verify address");
     }
 }
示例#2
0
        private void parseInfo()
        {
            try
            {
                System.Text.ASCIIEncoding encoding = new System.Text.ASCIIEncoding();

                string   str     = InReport.GetString();
                string[] details = str.Split(SEPARATOR_CHAR, StringSplitOptions.None);
                Comment = details[0];
                Author  = details[1];
                byte UTCSetting = encoding.GetBytes(details[2])[0]; //Currently not in use
                byte Celsius    = encoding.GetBytes(details[3])[0];
                ShowTemperatureInCelsius = Celsius == CELSIUS;
                DisplayAlarmLevels       = encoding.GetBytes(details[4])[0] == '1';
            }
            catch (Exception ex)
            {
                Log.Write("GetBoomerang Error", ex);
            }
        }
示例#3
0
 private void parseContactString()
 {
     contactListString += InReport.GetString();
 }