// Use this for initialization void Start() { SPO2Reader reader = new SPO2Reader(portName, maxQueueSize); processor = new SPO2Processor(reader); processor.Start(); }
public void Reconnect(string portName) { this.portName = portName; processor.StopAndJoin(); SPO2Reader reader = new SPO2Reader(portName, maxQueueSize); processor = new SPO2Processor(reader); processor.Start(); }