/// <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(); }
/// <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(); }