Exemple #1
0
        public async Task <BMP280_Data> Read()
        {
            if (!Init)
            {
                await Begin();
            }

            BMP280_Data data = new BMP280_Data();

            return(data);
        }
Exemple #2
0
        protected override async void OnNavigatedTo(NavigationEventArgs navArgs)
        {
            Debug.WriteLine("MainPage::OnNavigatedTo");
            try
            {
                await bmp280.Initialize();
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);
            }

            data = await bmp280.Read();

            OnReadButtonClick(null, null);
        }
Exemple #3
0
        protected override async void OnNavigatedTo(NavigationEventArgs navArgs)
        {
            Debug.WriteLine("MainPage::OnNavigatedTo");
            try
            {
                await bmp280.Initialize();
            }
            catch (Exception e)
            {
                Debug.WriteLine(e.Message);
            }

            data = await bmp280.Read();

            OnReadButtonClick(null, null);
        }
Exemple #4
0
        public async Task<BMP280_Data> Read()
        {
            if (!Init) await Begin();

            BMP280_Data data = new BMP280_Data();

            return data;
        }