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