Пример #1
0
        public InstantSensorData GetLatestReading()
        {
            InstantSensorData data = new InstantSensorData();

            data.Temperature  = Temperature.LastOrDefault();
            data.Presence     = Presence.LastOrDefault();
            data.Illumination = Illumination.LastOrDefault();
            data.Distance     = Distance.LastOrDefault();

            return(data);
        }
Пример #2
0
 public SensorPack(byte parent, byte idc)
 {
     latestData = new InstantSensorData();
     ParentId   = parent;
     IDC        = idc;
 }