Exemplo n.º 1
0
 protected override void parseResult()
 {
     // OK,interval,1.1.1.1.0.1..
     long[] res = new long[25];
     try
     {
         Schedule = new bool[24];
         string[] s = RawMessage.Replace("\r\n", "").Split(',');
         OK       = s[0].Equals("OK");
         res[24]  = long.Parse(s[1]);
         Interval = res[24];
         s        = s[2].Split('.');
         for (int i = 0; i < 24; i++)
         {
             res[i]      = long.Parse(s[i]);
             Schedule[i] = res[i] != 0;
         }
         Result = Schedule;
     }
     catch { OK = false; }
 }