Beispiel #1
0
 protected MicroXTime ParsePacketTime()
 {
     try
     {
         return(MicroXTime.ParseDataPacketTime(InReport, ParentDevice.Configuration.CurrentTime));
     }
     catch { throw new Exception("** ERROR with datetime format"); }
 }
Beispiel #2
0
 protected virtual void PopulateTime()
 {
     if (ParentOpCodeWrapper.Setup.Configuration.TimerRunEnabled)
     {
         MicroXTime time = new MicroXTime();
         time.Set(ParentOpCodeWrapper.Setup.Configuration.TimerStart);
         OutReport.InsertBlock(time.GetBytes());
     }
 }
Beispiel #3
0
 protected bool CheckAndHandleExpectedPacketTime(MicroXTime packetTime)
 {
     if (PacketTime == null)
     {
         PacketTime = packetTime;
         return(true);
     }
     else
     {
         return(packetTime != PacketTime);
     }
 }