예제 #1
0
파일: Main.cs 프로젝트: elennon/moosareback
 static void Main(string[] args)
 {
     //_bw.DoWork += bw_DoWork;
     //_bw.R
     while (run)
     {
         System.Threading.Thread.Sleep(30000);
         try {
             Mlx906 mlx = new Mlx906();
             mlx.GetMlx9062();
             //GetMlx906().Wait();
             //GetCavityTemp().Wait();
             //GetSdp610 ().Wait ();
             //GetSht15 ().Wait();
             //GetBMP180 ().Wait();
         } catch (Exception ex) {
             string h = ex.Message;
         }
         //PostReading(r).GetAwaiter().GetResult();
         //System.Threading.Thread.Sleep(60000);
     }
 }
예제 #2
0
파일: Main.cs 프로젝트: elennon/moosareback
 private static async Task GetMlx906()
 {
     Mlx906 mlx = new Mlx906();
     await mlx.GetMlx906();
 }