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

            BMP280_Data data = new BMP280_Data();

            return data;
        }