Esempio n. 1
0
 private static async Task EnableOperationModeEdl40(string portName, SmlComServiceClient proxy, Guid clientGuid, int hostOffset)
 {
     Console.WriteLine();
     Console.WriteLine("{0} - Enabling EDL40 mode with host offset: {1}.", portName, hostOffset);
     proxy.EnableOperationModeEdl40WithHostOffset(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName), hostOffset);
     var booleanResult = proxy.ReadIsOperationModeEdl40(clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     //Console.WriteLine("Operation mode read: " + Stringify(booleanResult));
     var meterTimeResult = proxy.ReadDateAndTime(
        clientGuid, portList.FirstOrDefault(m => m.ComPortName == portName));
     Console.WriteLine("{0} - Meter time read: {1}", portName, Stringify(meterTimeResult));
     Console.WriteLine();
 }