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