Esempio n. 1
0
 private static void WriteEnableTariffFunction(string portName, SmlComServiceClient proxy, Guid clientGuid, bool isOn)
 {
     Console.WriteLine("Setting Enable Tariff function to: " + isOn);
     proxy.WriteEnableTariffFunction(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), isOn);
     var result = proxy.ReadEnableTariffFunction(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("Tariffs enabled read: " + result.Data);
     Console.WriteLine();
 }