public void OneWireRun(String port) { this.oneWire = new SerialPortOneWire(port); try { this.oneWire.OneWireInit(); } catch (Exception) { } }
public DS18B20() { this.oneWire = new SerialPortOneWire(); this.oneWireAdapterPorts = oneWire.AviavailablePorts(); this.oneWire = null; }