Example #1
0
        public MainPage()
        {
            this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;
            this.InitializeComponent();
            CC2650SensorTag.SetUp();

            UserOut.Text = "Searching for Bluetooth LE Devices...";
            resultsListView.IsEnabled = false;
            PairButton.IsEnabled      = false;

            ResultCollection = new ObservableCollection <DeviceInformationDisplay>();

            DataContext = this;
            //Start Watcher for pairable/paired devices
            CC2650SensorTag_BLEWatcher = new TICC2650SensorTag_BLEWatcher(this.UpdateButtons_WhenSensorsAreReady_CallBack, this.CallMeBackTemp, this.initSensor);
            StartWatcher();
        }
Example #2
0
        public MainPage2()
        {
            this.NavigationCacheMode = Windows.UI.Xaml.Navigation.NavigationCacheMode.Enabled;
            this.InitializeComponent();
            CC2650SensorTag.SetUp_SensorsLists();

            UserOut.Text = "Searching for Bluetooth LE Devices...";
            resultsListView.IsEnabled = false;
            PairButton.IsEnabled      = false;

            ResultCollection = new ObservableCollection <DeviceInformationDisplay>();

            DataContext = this;
            //Start Watcher for pairable/paired devices

            SysInfo.GetInfo();
            txtCompany.Text           += "    OS Version: " + SysInfo.SystemVersion;
            CountUpdateDataEvents      = false;
            CC2650SensorTag_BLEWatcher = new TICC2650SensorTag_BLEWatcher(this.UpdateButtons_WhenSensorsAreReady_CallBack, this.CallMeBackTemp, this.initSensor);
            var res = Task <bool> .Run(() => StartWatcher());
        }