Esempio n. 1
0
 private static void ReadStatusWord(string portName, SmlComServiceClient proxy, Guid clientGuid)
 {
     Console.WriteLine("Reading statusword.");
     var statusWord = proxy.ReadEdlStatusWord(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Statusword read: [{0}], {1}", Convert.ToString((long)statusWord, 2), statusWord);
 }