예제 #1
0
 private async Task<Boolean> ShowData()
 {
     RetrieveData = await Sensdata.ReceiveData();
     if (RetrieveData != null)
     {
         Accel_x_text.Text = RetrieveData.AccelerometerX.ToString();
         Accel_y_text.Text = RetrieveData.AccelerometerY.ToString();
         Accel_z_text.Text = RetrieveData.AccelerometerZ.ToString();
         State_text.Text = RetrieveData.State.ToString();
         Date_time_text.Text = RetrieveData.MeasurementTime.ToString();
     }
     return true;
 }
 private async Task<Boolean> ShowData()
 {
     RetrieveData = await Sensdata.ReceiveData();
     if (RetrieveData != null)
     {
         Accel_x_text.Text = RetrieveData.AccelerometerX.ToString();
         Accel_y_text.Text = RetrieveData.AccelerometerY.ToString();
         Accel_z_text.Text = RetrieveData.AccelerometerZ.ToString();
         Gyro_x_text.Text = RetrieveData.GyroscopeX.ToString();
         Gyro_y_text.Text = RetrieveData.GyroscopeY.ToString();
         Gyro_z_text.Text = RetrieveData.GyroscopeZ.ToString();
         Mag_x_text.Text = RetrieveData.MagnetometerX.ToString();
         Mag_y_text.Text = RetrieveData.MagnetometerY.ToString();
         Mag_z_text.Text = RetrieveData.MagnetometerZ.ToString();
         Pressure_text.Text = RetrieveData.BarometerAmbPres.ToString();
         Temperature_text.Text = RetrieveData.HumidityRelTemp.ToString();
         Humidity_text.Text = RetrieveData.HumidityRelHum.ToString();
         Date_time_text.Text = RetrieveData.MeasurementTime.ToString();
     }
     return true;
 }
예제 #3
0
        private async Task <Boolean> ShowData()
        {
            RetrieveData = await Sensdata.ReceiveData();

            if (RetrieveData != null)
            {
                Accel_x_text.Text     = RetrieveData.AccelerometerX.ToString();
                Accel_y_text.Text     = RetrieveData.AccelerometerY.ToString();
                Accel_z_text.Text     = RetrieveData.AccelerometerZ.ToString();
                Gyro_x_text.Text      = RetrieveData.GyroscopeX.ToString();
                Gyro_y_text.Text      = RetrieveData.GyroscopeY.ToString();
                Gyro_z_text.Text      = RetrieveData.GyroscopeZ.ToString();
                Mag_x_text.Text       = RetrieveData.MagnetometerX.ToString();
                Mag_y_text.Text       = RetrieveData.MagnetometerY.ToString();
                Mag_z_text.Text       = RetrieveData.MagnetometerZ.ToString();
                Pressure_text.Text    = RetrieveData.BarometerAmbPres.ToString();
                Temperature_text.Text = RetrieveData.HumidityRelTemp.ToString();
                Humidity_text.Text    = RetrieveData.HumidityRelHum.ToString();
                Date_time_text.Text   = RetrieveData.MeasurementTime.ToString();
            }
            return(true);
        }