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