private void OnLightIntensityMeasurementValueChanged(LightIntensityMeasurementEventArgs args)
 {
     if (_lightValueChanged != null)
     {
         ((EventHandler <LightIntensityMeasurementEventArgs>)_lightValueChanged)(this, args);
     }
 }
예제 #2
0
 static public void OnLightMeasurementValueChanged(object sender, LightIntensityMeasurementEventArgs e)
 {
     lock (values)
     {
         values.Add(new Tuple <string, DateTimeOffset, double>($"{e.Mac}.lux", e.Timestamp, e.Measurement.Lux));
     }
 }