示例#1
0
        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();
            }
        }
示例#2
0
        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();

            }
        }