private void OnTimedEventWU(object source, System.Timers.ElapsedEventArgs e)
{
timerRapidFire_TickWU(null, null);
try
{
ISensor[] sensors = _deviceConnection.ToArray();
for (int i = 0; i < sensors.Length; i++)
{
if (sensors[i].IsValid)
{
var reading = sensors[i].GetCurrentReading();
if (reading.IsWindSpeedValid == true)
{
_advancedSensorValues[i].AddValue_WU_WindSpeed(reading.WindSpeed);
}
}
}
}
catch (Exception ex)
{
Log.Error(ex.ToString());
}
}