private void MainPage_Loaded(object sender, RoutedEventArgs e) { List <P3bble.Core.P3bble> pebbles = P3bble.Core.P3bble.DetectPebbles().Result; if (pebbles.Count >= 1) { _peb = pebbles[0]; _peb.Connected += PebbleConnected; _peb.Connect(); } }
private void MainPage_Loaded(object sender, RoutedEventArgs e) { List<P3bble.Core.P3bble> pebbles = P3bble.Core.P3bble.DetectPebbles().Result; if (pebbles.Count >= 1) { _peb = pebbles[0]; _peb.Connected += PebbleConnected; _peb.Connect(); } }