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

            BMP280_Data data = new BMP280_Data();

            return(data);
        }
Example #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);
        }
Example #3
0
        public async Task<BMP280_Data> Read()
        {
            if (!Init) await Begin();

            BMP280_Data data = new BMP280_Data();

            return data;
        }