Esempio n. 1
0
        public async Task <BME280_Data> Read()
        {
            if (!Init)
            {
                await Begin();
            }

            BME280_Data data = new BME280_Data();

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

            data = await bme280.Read();

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

            data = await bme280.Read();

            OnReadButtonClick(null, null);
        }
Esempio n. 4
0
        public async Task<BME280_Data> Read()
        {
            if (!Init) await Begin();

            BME280_Data data = new BME280_Data();

            return data;
        }