예제 #1
0
 /// <summary>
 /// Test le publisher
 /// </summary>
 public static void TestPublisher()
 {
     Publisher myPub = new Publisher();
     try
     {
         while (true)
         {
             myPub.SendInfo(Publisher.GESTE, "DEBOUT");
             Thread.Sleep(500);
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex);
     }
 }
예제 #2
0
 public Localisation(string _filename, string _nomZoneDefaut, Publisher _pub)
 {
     Zones = new List<Zone>();
     ReadXml(_filename);
     Pub = _pub;
     InitSensor();
     Statut = ABSENT;
     Zone = "";
     ZoneDefaut = _nomZoneDefaut;
 }