コード例 #1
0
        /// <summary>
        /// Instanciates a new bluetoothCom for the device
        /// </summary>
        public void StartBluetoothService()
        {
            bluetoothCom = new BluetoothCom();

            // start the listener in a threaded loop
            listenThread = new Thread(new ThreadStart(BluetoothCom.ListenLoop));
            listenThread.Start();

            // start the discovery service in a threaded loop
            discoverThead = new Thread(new ThreadStart(BluetoothCom.DiscoverLoop));
            discoverThead.Start();
        }
コード例 #2
0
ファイル: Member.cs プロジェクト: xuchuansheng/GenXSource
        /// <summary>
        /// Instanciates a new bluetoothCom for the device
        /// </summary>
        public void StartBluetoothService()
        {
            bluetoothCom = new BluetoothCom();

            // start the listener in a threaded loop
            listenThread = new Thread(new ThreadStart(BluetoothCom.ListenLoop));
            listenThread.Start();

            // start the discovery service in a threaded loop
            discoverThead = new Thread(new ThreadStart(BluetoothCom.DiscoverLoop));
            discoverThead.Start();
        }