public void StartPulseOX() { pulse=new OnyxII(_port); pulse.OpenConnection(); listenerThread = new Thread(new ThreadStart(DoListen)); listenerThread.Start(); }
public static void Main() { OnyxII po = new OnyxII(true); //po.OpenConnection(); for (int i = 0; i < 10; i++) { System.Console.WriteLine("{0}", po.GetHrAndSpo2()); } }
public void DoListen() { try{ do{ getInput(); System.Threading.Thread.Sleep(1000); }while(true); }catch{ pulse=new OnyxII(-1); pulse.OpenConnection(); listenerThread = new Thread(new ThreadStart(DoListen)); listenerThread.Start(); } }
public static void Main(string[] args) { OnyxII po = new OnyxII(18); // Console.Write(po.GetHrAndSpo2() + "\n"); po.OpenConnection(); while (true) { Console.Write(po.GetHrAndSpo2() + "\n"); System.Threading.Thread.Sleep(1000); } }
public static void Main(string[] args) { OnyxII obj = new OnyxII(-1); obj.OpenConnection(); }
public PulseOx(int port) { _port = port; name = "PulseOx"; po = new OnyxII(_port); }