public BluetoothCommPort(ApplicationForm bluetoothForm, TemperatureGraphForm tempGraph) { this.btForm = bluetoothForm; this.tempGraph = tempGraph; this.BluetoothClient = null; this.BluetoothListener = null; this.BluetoothTransmitter = null; this.BluetoothReceiver = null; this.BluetoothDeviceRepository = new BluetoothDeviceRepository(); this.BluetoothDeviceScanner = new BluetoothDeviceScanner(bluetoothForm); this.messageDeserialization = new MessageDeserialization(); this.messageDecoder = new MessageDecoder(); this.TransmitBuffer = new byte[1024]; this.Pin = "1234"; }
public BluetoothDeviceScanner(ApplicationForm bluetoothForm) { this.bluetoothForm = bluetoothForm; this.DiscoveredBluetoothDevices = new List <BluetoothDevice>(); }