public BandGsrSensorReadingChangedEventArgs(IBandGsrReading sensorReading) { if (sensorReading == null) { throw new ArgumentNullException("sensorReading"); } this.SensorReading = sensorReading; }
private void Gsr_ReadingChanged(object sender, BandSensorReadingEventArgs <IBandGsrReading> e) { IBandGsrReading gsrRead = e.SensorReading; data.gsr = gsrRead.Resistance; }
string FormatGsr(IBandGsrReading reading) => $"Resistance: {reading.Resistance:F2}";