Ejemplo n.º 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();
        }
Ejemplo n.º 2
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();
        }