Beispiel #1
0
        public BandBarometerSensorReadingEventArgs(IBandBarometerReading sensorReading)
        {
            if (sensorReading == null)
            {
                throw new ArgumentNullException("sensorReading");
            }

            this.SensorReading = sensorReading;
        }
Beispiel #2
0
 string FormatBarometer(IBandBarometerReading reading) =>
 $"Pressure: {reading.AirPressure:F2}, Temp:{reading.Temperature:F2}";