Exemplo n.º 1
0
        private void Compass_ReadingChanged(object sender, CompassChangedEventArgs e)
        {
            Xamarin.Essentials.CompassData reading = e.Reading;
            DoubleData data = Heading;

            data.TimeStamp = DateTime.UtcNow;
            data.Value     = reading.HeadingMagneticNorth;
            data.SendNotification();
        }
Exemplo n.º 2
0
        private void Barometer_ReadingChanged(object sender, BarometerChangedEventArgs e)
        {
            Xamarin.Essentials.BarometerData reading = e.Reading;
            DoubleData data = Pressure;

            data.TimeStamp = DateTime.UtcNow;
            data.Value     = reading.PressureInHectopascals;
            data.SendNotification();
        }