Esempio n. 1
0
 /// <summary>
 /// Open connection and access bus
 /// </summary>
 /// <returns>true if success, false if error</returns>
 public bool Connect()
 {
     if (PHY.Connect())
     {
         // Start the link thread if connection was successful
         LinkThread.Start();
         FramingTimer.Start();
         return(true);
     }
     return(false);
 }
Esempio n. 2
0
 /// <summary>
 /// Open connection and access bus
 /// </summary>
 /// <returns>true if success, false if error</returns>
 public bool Connect()
 {
     if (PHY.Connect())
     {
         // Start the link thread if connection was successful
         ActualState = ModbusAsciiLinkState.IDLE;
         LinkThread.Start();
         return(true);
     }
     return(false);
 }