Problem with MetaWear API

So i am working with the starter project found here

In MainPage.xaml.cs, there is a part of the code that initializes one MetaWear..

var board = MetaWearBoard.getMetaWearBoardInstance(selectedDevice);
                board.Initialize(new FnVoid(async () => {
                    await CoreApplication.MainView.CoreWindow.Dispatcher.RunAsync(
                    CoreDispatcherPriority.Normal, () => {
                        initFlyout.Hide();
                        this.Frame.Navigate(typeof(DeviceSetup), selectedDevice);
                    });
                }));


I want to run the same code, but i want to initialize several MetaWear devices, not just one. How do I modify this code to do this?

Comments

  • Call the code multiple times with different BluetoothLEDevice objects
  • sorry, should've mentioned i fixed this problem already.
This discussion has been closed.