private void OnLightIntensityMeasurementValueChanged(LightIntensityMeasurementEventArgs args) { if (_lightValueChanged != null) { ((EventHandler <LightIntensityMeasurementEventArgs>)_lightValueChanged)(this, args); } }
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)); } }